Link to home
Start Free TrialLog in
Avatar of rdevitis
rdevitisFlag for United States of America

asked on

IIS7 - Host header / Default Document problems

I have a website that is housed in inetpub\wwwroot\mysite.
I have 2 sites listed in IIS7, each accessing the files in mysite, just each a bit differently.

mysite1 has a hostheader of mysite1.myorg.com, the Physical Path is C:\inetpub\wwwroot and a default document of logon.asp
mysite2 has a hostheader of mysite2.myorg.com and the Physical Path is C:\inetpub\wwwroot\mysite and a default document of logon2.asp

I have added local DNS entrys so both point to the proper IP.

When I go to mysite1.myorg.com/mysite I am taken to the logon page for mysite2.myorg.com.

I can go to mysite1.myorg.com/mysite/logon.asp and logon fine, but cant figure out why, even with host headers and a default document defined, that mysite1.myorg.com/mysite wont take me to the proper logon page.

Avatar of Wadski
Wadski
Flag of United Kingdom of Great Britain and Northern Ireland image

Is the IP address each website listening on the same IP address?  I am guessing the mysite2 one is set to '(All Unassigned)' and is above the mysite1 .
if you change this to the same IP as the first it will work.
Avatar of rdevitis

ASKER

Thanks for the quick feedback, unfortunately though, both sites are set to the same IP.
You've probably done this many times already but have you stopped and started the service?  You must do this as the changes don't commit until the service has been restarted.


I did, and just did it again to make sure. No go. Thats what make this so much fun. Just as some background, I did have this working fine in IIS6 on a 2003 server. This is now IIS7 on a 2008 box, if I didnt mention that before.
SOLUTION
Avatar of Wadski
Wadski
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you check that the host headers for mysite1 don't exist in the container for mysite2?
Not exactly sure what you mean
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial