Force users to access SSL site using specific host header

Posted by mwillmott on Server Fault See other posts from Server Fault or by mwillmott
Published on 2010-05-28T13:07:28Z Indexed on 2010/05/28 13:12 UTC
Read the original article Hit count: 275

Filed under:
|

Hi,

So i am running IIS7 with one SSL site on it. I have a few different domains and subdomains that all point to my external IP. When using http they all direct to their respective sites using host headers. Whenever someone uses https on any of the domains they all point to my SSL site.

I only want people who type in https://sub.domain.com (for example) to end up at my secure site and for anything else to just not go there, it can throw an error or direct to the http version, it doesn't matter.

Is there a way of getting IIS7 to check the host header and throw an error if it doesn't match my specific subdomain?

Thanks,

Michael

© Server Fault or respective owner

Related posts about iis7

Related posts about ssl