![]() |
httpsys and nsRedirect - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: httpsys and nsRedirect (/thread-1972.html) |
httpsys and nsRedirect - joelcc - 09-15-2020 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 RE: httpsys and nsRedirect - joelcc - 09-17-2020 (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. Does anyone know if the nsRedirect is supposed to work under an http.sys deployment? RE: httpsys and nsRedirect - kudzu - 09-17-2020 AFAIK it should, I've asked Alexandre to look into it. RE: httpsys and nsRedirect - joelcc - 09-21-2020 (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/TIWProxyPortRedirection.html I will let you know if that fixes the issue. RE: httpsys and nsRedirect - joel - 09-22-2020 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. RE: httpsys and nsRedirect - Alexandre Machado - 09-22-2020 I'll have a look and let you know ASAP RE: httpsys and nsRedirect - Alexandre Machado - 09-24-2020 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, RE: httpsys and nsRedirect - joelcc - 09-24-2020 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. RE: httpsys and nsRedirect - Alexandre Machado - 09-25-2020 You mean that you were setting the Http settings of ServerController inside OnCreate event? RE: httpsys and nsRedirect - joel - 09-25-2020 Yes. The error was that we were setting it in procedure TController.IWServerControllerBaseCreate(Sender: TObject); begin fState := sCreating; Load(xonCreate); |