Link to home
Start Free TrialLog in
Avatar of Dave_O
Dave_OFlag for Afghanistan

asked on

Adding https to URL of non=SSL site redirects to the SSL site

I've configured IIS on a new install of Windows Server 2008 R2 and have setup numerous web sites. I imported my first SSL certificate and configured for only 1 site to use.

Now I notice that if I add https to the URL of any other non-SSL site on that server, I will get re-directed to the site that has the SSL certificate. The URL will be the name of the other site but the SSL site is what loads.

How do I prevent the other non-SSL sites from redirecting to the SSL site when https prefaces the URL.

I noticed in IIS 6 that it throws a 'connection refused' error in this same scenario.

I'm moving these sites from an old IIS 6.0 server to IIS 7.0.

I know the simple answer is not to add https to the URL of the non-SSL sites :-0... but my QC department has raised this issue so I'm trying to find a solution.  

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of djcanter
djcanter
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xDUCKx
xDUCKx

to add to DJ's response:  SSL requires it's own IP Address and doesn't support host headers.  You'll need to bind another IP Address to the server in TCP/IP Properties and assign that to the SSL site.
Avatar of Dave_O

ASKER

Thanks guys. Makes sense. I noticed in the bindings section, once you select https, the host-header field grays out.

I will do it.