Previous Next

Thread: Help with IIS 6 website configuration & Host Headers-Answered

Last post 06-11-2008 11:27 AM by GregHH. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 06-11-2008, 9:49 AM

    • GregHH
    • Not Ranked
    • Joined on 06-11-2008, 9:45 AM
    • Posts 2

    Help with IIS 6 website configuration & Host Headers-Answered

    I have a Windows 2003 servier running IIS 6.0. I've created two web sites on this server say EXTERNAL.ORG and INTERNAL.NET. Both share the same IP port 80 but have different Host Header Values. The latter site (internal.neh) seems to work fine. The site (external.org) behaves as follows. Unless I specify the full path name for each href /link it defaults to the Internal.net site alias. For example in ASP or HTM if I have to reference something I have to use the full path like <img src="http://external.org/images/communityheader.gif" mce_src="http://external.org/images/communityheader.gif"... If I use <img src="images/communityheader.gif" mce_src="images/communityheader.gif"... expecting it to start from the root, silly me, then it comes up with a 404 file not found. In some ASP code I see it sub http://internal.net/ for the root for that site. It's like (external.org) pages doesn't know their host header value or it is accepting the internal.net host header and not it's own. I'm quite sure it has something to do with IIS6 and it's configuration / security because on my old server IIS V5 works fine with Host Headers.

    Any suggestions on what I might have missed?

    Found most, if not all the answers: For the rest who get caught on this...

    I believe it was the DNS. The web server in question only had some of the host entries set correctly. So far all the testing is looking GOOD with the original code. Oh the other BIG thing was to get every darn occurance of <base href="http://www.internal.neh"> out of ALL the code. Thanks for those Greg

     

    Tags:
  • 06-11-2008, 11:17 AM In reply to

    Re: Help with IIS 6 website configuration & Host Headers

    By any chance are both these websites running under the same root folder?

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 06-11-2008, 11:27 AM In reply to

    • GregHH
    • Not Ranked
    • Joined on 06-11-2008, 9:45 AM
    • Posts 2

    Re: Help with IIS 6 website configuration & Host Headers

    Each site is under C:\inetpub\sitename so in this case external would be C:\inetpub\external as it's root and for the internal it is c:\inetpub\internal

Page 1 of 1 (3 items)
Page view counter