• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1872
  • Last Modified:

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.

0
rdevitis
Asked:
rdevitis
  • 4
  • 3
2 Solutions
 
WadskiIT DirectorCommented:
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.
0
 
rdevitisAuthor Commented:
Thanks for the quick feedback, unfortunately though, both sites are set to the same IP.
0
 
WadskiIT DirectorCommented:
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.


0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
rdevitisAuthor Commented:
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.
0
 
WadskiIT DirectorCommented:
Can you check that the host headers for mysite1 don't exist in the container for mysite2?
Can you also temporarily remove  the mysite2 site and see what happens with the request to mysite1?


0
 
rdevitisAuthor Commented:
Can you check that the host headers for mysite1 don't exist in the container for mysite2?
Not exactly sure what you mean
0
 
rdevitisAuthor Commented:
It appears that there was some inheritance on default website which was overriding the default document settings I had on the sub sites. Very odd, dont remmeber it working that way in IIS6. Best part is I had the default site stopped.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now