Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 (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?



share|improve this question
up vote 0 down vote accepted

You should use URL Rewrite for that, see Canonicalization and Host Names below:

share|improve this answer
Nice to see to here Carlos. – Vivek Kumbhar Jun 3 '10 at 3:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.