Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I am running IIS 7 and I host multiple website under one IP address. Each website is configured using host names, so that a visitor ends up at the correct website.

One of the websites uses SSL (for example

I created a new website, say and when I enter that address in my browser, it automatically redirects to and returns an error that the certificate is invalid. Of course it is invalid! The certificate is for a totally different website.

To make things worse, I have another website - and that website is running correctly.

Now my question is: What makes IIS decide to redirect to HTTPS, even when I have it turned off for And how do I fix this buggy behaviour?

share|improve this question

Where have you pointed this subdomain ? Is it at a directory on the server? Don't assume that its happening in IIS, it might be hitting the index.html/php and then redirecting from here. Use liveHeaders (or similar) to work out what it is doing.

share|improve this answer
Thank you. Your answer guided me in the right direction. – jao Feb 13 '11 at 12:38
up vote 0 down vote accepted

Nevermind. I was just stupid. there was a redirection to HTTPS in the global.asax of the web project.

share|improve this answer
Glad you resolved this issue. Please be sure to mark your answer as "accepted" when you are able. – jscott Jul 24 '12 at 13:42

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.