By pfkoss - Mon 2 Nov 2015
|
Just enabled SSL on a site.
Set up is as follows
IIS7 running many different websites
Kartris site setup HTTP bound to port 8130 HTTPS bound to port 8131
external IP address is redirected through firewall to internal IP as follows (obviously not real IPs)
111.111.111.111:80 traffic redirected to 222.222.222.222:8130 111.111.111.111:443 traffic redirected to 222.222.222.222:8131
If I navigate http:\\site.domain.com everything is fine.
if I navigate https:\\site.domain.com the site hangs and then redirects to site.domain.com:8131/default.aspx
I'm assuming there is a redirect somewhere in the code that is catching the SSL traffic and forcing the redirect but I can't seem to find it and I don't know why it is adding the port number.
I've tried this with the SSL config flag on and off and there is no difference.
Anyone have any ideas ?
|
By Paul - Tue 3 Nov 2015
|
There is a code for handling SSL in app_code/security.vb
Kartris is designed to switch to SSL on pages that require it by redirecting to https from http. I don't think the port info is being added by kartris in this redirect, though to confirm this you could set the app pool to classic rather than integrated, and then test on a static file like the favicon.ico (in classic pool, this won't fire up any of the Kartris code, in integrated it will). If that gets redirected, then it's come from IIS and not kartris.
If it's coming from kartris then would need to tinker with the SSL functions i think to fix this.
|
By pfkoss - Mon 9 Nov 2015
|
Turns out the issue was basic. We are using port binding in IIS for the multiple site we run. (only one of which is kartris). Kartriss / Authorize.net will only allow for standard ports and will not work with non-standard ports. You must have site running on 80/443
|