IIS Server - Multiple hostheaders for one website.

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server > January 2005 > Multiple hostheaders for one website.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Multiple hostheaders for one website.
sosh

2005-01-27, 6:31 am

Hi,

I'm having a strange problem with host headers that I hope someone might be able to shed some light on.

I have a web server (windows 2000 server - up to date patches) with one IP address.

I have two domains, a main one and a another website so lets say:

main.co.uk and
other.org.uk

I have dns for both (maintained by third party) and all subdomains pointing to my IP.

I want these addresses to go to the other website:

other.org.uk
www.other.org.uk
other.main.co.uk

Initially I had just other.main.co.uk set in host headers pointing to the other webspace (while the other.org.uk transfer was taking place). Once the transfer happened I added other.org.uk and www.other.org.uk to the "multiple identities for this website" dialogue in the advanced section of the website config.

Unfortunately, IIS seems only to take into account the first two host header settings, with the third being ignored and just going to the main site.

Anyone got any ideas? Is it something to do with the fact that I don't have hostheaders defined for the main site? Or that I'm using "All Unasigned" in the for the IP? A bug?

Thanks!
Kristofer Gafvert

2005-01-27, 5:52 pm

Hi,

Can you please use WFetch from the IIS 6.0 Resource Kit tools, and set it
up like this:

Host: Ip of webserver
Path: /default.htm (or some other file on the website)
Advanced Request: Add Headers, write:

Host: www.other.org.uk\r\n

Click Go.

I assume that www.other.org.uk was the one that you are having problems
with.
Does this give you the page of the website?

I want you to do this to make sure that DNS lookup is true DNS and not
some forwarding service that does not send the host header field.

--
Regards,
Kristofer Gafvert
www.gafvert.info - My Articles and help
www.ilopia.com


sosh wrote:

>
> Hi,
>
> I'm having a strange problem with host headers that I hope someone
> might be able to shed some light on.
>
> I have a web server (windows 2000 server - up to date patches) with one
> IP address.
>
> I have two domains, a main one and a another website so lets say:
>
> main.co.uk and
> other.org.uk
>
> I have dns for both (maintained by third party) and all subdomains
> pointing to my IP.
>
> I want these addresses to go to the other website:
>
> other.org.uk
> www.other.org.uk
> other.main.co.uk
>
> Initially I had just other.main.co.uk set in host headers pointing to
> the other webspace (while the other.org.uk transfer was taking place).
> Once the transfer happened I added other.org.uk and www.other.org.uk to
> the "multiple identities for this website" dialogue in the advanced
> section of the website config.
>
> Unfortunately, IIS seems only to take into account the first two host
> header settings, with the third being ignored and just going to the
> main site.
>
> Anyone got any ideas? Is it something to do with the fact that I don't
> have hostheaders defined for the main site? Or that I'm using "All
> Unasigned" in the for the IP? A bug?
>
> Thanks!
>
>
>
> --
> sosh
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message896306.html
>

sosh

2005-01-28, 4:16 am

Hi,

Thanks for your response. I'm unable to run any tools from the IIS6 resource kit however as I'm on Windows 2000 server, and it wont install. I'm almost certain that we have a true DNS setup though, I know the guys that manage the DNS server, and the domain lives with them, not some other registrar. Also host headers do work when there are only two host header identities set up.

Thanks
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com