Iis – Two different sites, same IP, same top-level domain, on IIS 7.5 — one works and the other displays HTTP 404 error

domainiisiis-7iis-7.5ip

I'm running a Windows 2008 R2 box with IIS 7.5 as the web server.

On IIS, I have two websites: mysubsite1.mysite.com and mysubsite2.mysite.com. There is only one IP on the server and both sites share this IP. Here is how I have the bindings configured:

mysubsite1

mysubsite2

mysubsite1.mysite.com works fine. However, mysubsite2.mysite.com gives me the following error:

Not Found

HTTP Error 404. The requested resource is not found.

Now, if I change the Host name field for mysubsite1.mysite.com to blank and restart the web server, both sites work!

mysubsite1.1

The question is why is the host name field for the first site causing an HTTP 404 error for the second site when both sites' Host name fields are filled?

I would appreciate any insight. Thank you.

Best Answer

Instead of leaving the address to "All Unassigned", set it to the shared IP address for both sites.

Related Topic