Juven
Juven

Reputation: 63

SSL certificate in IIS for one site, all sites responds to https request

I have multiple sites running on my IIS, now for one of the websites (SiteB) we need to support ssl requests. I have enabled it editing bindings for the website but this causes that all sites of my IIS if are requested with https:// loads web site of siteB.

I have only one IP for all sites.

For example my bidings are the next

Site A
IP  Port HostName
*     80 www.sitea.com

Site B
IP Port Hostname
*   443 www.siteb.com
*    80 www.siteb.com

If I type https://www.siteb.com in my browser it works correctly, but if I type https://www.sitea.com in the browser, siteb webpage is loaded with the hostname of sitea.

How Can I make that only https://www.siteb.com responds to https requests on my IIS?

Thanks in advance.

Upvotes: 1

Views: 152

Answers (1)

Michal
Michal

Reputation: 229

https://technet.microsoft.com/en-us/library/cc732969%28v=ws.10%29.aspx very useful especially in your precise case.

appcmd set config /section:httpRedirect /enabled:true /destination:contoso.com <--obviously change to your page and if it's only case of child page : appcmd set config /section:httpRedirect /childOnly:true additionally you can add parameters from appcmd /?.

Upvotes: 1

Related Questions