We help IT Professionals succeed at work.

IIS7 Binds All Domains SSL Domain

Windows Server 2003
IIS7
IP 1.1.1.1
IP 2.2.2.2
www.domain1.com bound to IP 1 with SSL on 443
www.domain2.com bound to IP 2 with SSL on 443
www.domain3.com bound to IP 1 with NO SSL

How do I stop https://www.domain3.com displaying the website www.domain1.com ?

Hopefully that is clear :)
Comment
Watch Question

Paul MacDonaldDirector, Information Systems

Commented:
Have you explicitly removed port 80 from domain1.com?  This whole thing seems pretty hokey to me, but I guess I can't see a reason why it wouldn't work...
Paul MacDonaldDirector, Information Systems

Commented:
I don't have IIS7 handy, but this doesn't seem possible in IIS6...

Author

Commented:
http://www.domain1.com/most of the site/ on port 80
https://www.domain1.com/the bit that needs to be secure/ on port 443
Paul MacDonaldDirector, Information Systems

Commented:
Yes, but if domain1 and domain3 are configured for the same IP, it's a toss up as to which one IIS will serve up.

Author

Commented:
'a toss up' - as in it works randomly?

Why would https://www.domain3.com not just return a 404?
Commented:
I added a new IP address in the end and that resolved the issue.
Paul MacDonaldDirector, Information Systems

Commented:
No, which ever one was configured first.  Adding the additional IP would have been the only way to fix this.