rdevitis
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/l ogon.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.
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/l
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.
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Can you check that the host headers for mysite1 don't exist in the container for mysite2?
Not exactly sure what you mean
Not exactly sure what you mean
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if you change this to the same IP as the first it will work.