Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
httpsys and nsRedirect
#1
I am running a program under httpsys and would like to turn on the SSL Options->NonSSLRequest so that it will redirect from non ssl to ssl.  When I set the value to nsRedirect, it does not seem to redirect.

We are using iw 15.2.15
Reply
#2
(09-15-2020, 03:04 PM)joelcc Wrote: I am running a program under httpsys and would like to turn on the SSL Options->NonSSLRequest so that it will redirect from non ssl to ssl.  When I set the value to nsRedirect, it does not seem to redirect.

We are using iw 15.2.15

Does anyone know if the nsRedirect is supposed to work under an http.sys deployment?
Reply
#3
AFAIK it should, I've asked Alexandre to look into it.
Reply
#4
(09-17-2020, 04:22 PM)kudzu Wrote: AFAIK it should, I've asked Alexandre to look into it.

Maybe our setup is incorrect then.  I am having one of my guys recheck the setup according to the following:  http://docs.atozed.com/docs.dll/classes/...ction.html

I will let you know if that fixes the issue.
Reply
#5
We tested the nsRedirect with http.sys again today and it still throws the error   "ERR_TOO_MANY_REDIRECTS".

I have attached a document with the instructions for our configuration, more detailed information of the error, and the link that you can click on to view the error.

I appreciate your help in fixing the issue.


Attached Files
.docx   Example of the redirect not working with http.sys.docx (Size: 342.36 KB / Downloads: 9)
Reply
#6
I'll have a look and let you know ASAP
Reply
#7
Hi Joel,

I created a simple test case and got it working correctly with latest IW 15.2.18.

Please see the attached demo.

You actually don't need the ProxyPortRedirection to be active. ProxyPortRedirection exists if you want to redirect to a different port (Example, your server is active on port 8888 but there is an reverse proxy which listens o port 80 and forward the requests to your server on that port). Then you would like to inform IW to redirect anything to port 80 (instead of its own port 8888), so the address will be correct.

Once I got it working I haven't tested yet the ProxyPortRedirection to see if that's the cause of all the redirections... but anyway.

Can you please test this and let me know?

Cheers,


Attached Files
.zip   Centupli.com.zip (Size: 23.92 KB / Downloads: 5)
Reply
#8
We got it working.

The issue turned out to be how we were calling the settings. Once we switched the settings to the onConfig instead of the onCreate of the server controller it worked.

Thanks for the help.

Possibly there needs to be an error that is thrown if these are set in the onCreate so no one else makes the same mistake.
Reply
#9
You mean that you were setting the Http settings of ServerController inside OnCreate event?
Reply
#10
Yes. The error was that we were setting it in

procedure TController.IWServerControllerBaseCreate(Sender: TObject);
begin
fState := sCreating;
Load(xonCreate);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)