I have an AbleCommerce (ASP.NET e-commerce CMS) website which needs SSL (obviously) but is hosted on a server which can only have 1 internal IP address. This would usually be fine, as I can add an external IP and destination NAT the external port 443 to the server's port 8443, for example. This works for other websites, perfectly well.
Problem:
When I visit the site at https://site, the browser is redirected (by way of a HTTP 301) to https://site:8443/
(which is of course inaccessible to the outside world).
I created the following URL rewrite to prevent this, but it doesn't seem to be working as I still end up at https://site:8443
<rule name="Port 8443 Fix" stopProcessing="true"><match url=".*" /><conditions><add input="{SERVER_PORT}" pattern="8443" /></conditions><serverVariables><set name="SERVER_PORT" value="443" /></serverVariables><action type="None" /></rule>
The site is running on Server 2012 with IIS 8. Can anyone see a problem with this re-write rule, or point me in the right direction as to why it wouldn't be working?