Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 https://example.mywebsite.com/).

I created a new website, say http://subdomain.contoso.com/ and when I enter that address in my browser, it automatically redirects to https://subdomain.contoso.com 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 - http://another.mywebsite.com/ 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 subdomain.contoso.com. And how do I fix this buggy behaviour?

share|improve this question

2 Answers 2

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

Where have you pointed this subdomain http://subdomain.contoso.com/ ? 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

Your Answer

 
discard

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.