Bad Request (Invalid Hostname)

Bad Request (Invalid Hostname)

am 25.07.2007 18:00:03 von LeRoy Vanek

Hi i am running 2 DC's w/ Server 2k3 Enterprise. On one server i have IIS 6.0
running my default website. www.leroyandmary.info . I can access my
website externally no problem. But on my local intranet at home where my
domain resides, if i type in www.leroyandmary.info i get the Bad Request
(Invalid Hostname) in my web browser. If i type it in via IP of
66.61.41.55 it works fine. Any suggestions?

Re: Bad Request (Invalid Hostname)

am 26.07.2007 07:01:34 von Ken Schaefer

If you ping www.leroyandmary.info when you are internal, where does it
resolve to?

Cheers
Ken


"LeRoy Vanek" wrote in message
news:76C9654E-9C39-432B-9218-444FA783223A@microsoft.com...
> Hi i am running 2 DC's w/ Server 2k3 Enterprise. On one server i have IIS
> 6.0
> running my default website. www.leroyandmary.info . I can access my
> website externally no problem. But on my local intranet at home where my
> domain resides, if i type in www.leroyandmary.info i get the Bad Request
> (Invalid Hostname) in my web browser. If i type it in via IP of
> 66.61.41.55 it works fine. Any suggestions?

Re: Bad Request (Invalid Hostname)

am 26.07.2007 12:39:33 von David Wang

On Jul 25, 9:00 am, LeRoy Vanek Va...@discussions.microsoft.com> wrote:
> Hi i am running 2 DC's w/ Server 2k3 Enterprise. On one server i have IIS 6.0
> running my default website. www.leroyandmary.info. I can access my
> website externally no problem. But on my local intranet at home where my
> domain resides, if i type inwww.leroyandmary.infoi get the Bad Request
> (Invalid Hostname) in my web browser. If i type it in via IP of
> 66.61.41.55 it works fine. Any suggestions?



What DNS is your Intranet setup to use and where does it resolve the
name "www.leroyandmary.info"?

ASSUMING that your intranet request actually got routed to your IIS6
server, if you get "Invalid Hostname" it means that you failed to
configure your website to accept the host header of the request
generated from your Intranet. There are many ways to resolve this
issue, but they all boil down to you matching what you configure the
website to accept and what you make the client's send as host header.

I think you configured the website to require the external IP address
for host header, and on the Intranet the hostname
"www.leroyandmary.info" resolves to an Intranet IP, hence it fails on
the Intranet. You either figure out how to get your Intranet request
to generate the right host header, or configure the website to also
accept more host header values.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

RE: Bad Request (Invalid Hostname)

am 27.07.2007 17:38:02 von LeRoyVanek

Yup the day i was trouble shooting i must not have been thinking correctly.
Ping resolves it to servera.leroyandmary.info (192.168.0.1) In my header
values i only had header information for my public ip of 66.61.41.55 nothing
in there for my internal side of 192.168.0.1 added the internal ip to
website identities and viola it works. Thanks again for all the help

"LeRoy Vanek" wrote:

> Hi i am running 2 DC's w/ Server 2k3 Enterprise. On one server i have IIS 6.0
> running my default website. www.leroyandmary.info . I can access my
> website externally no problem. But on my local intranet at home where my
> domain resides, if i type in www.leroyandmary.info i get the Bad Request
> (Invalid Hostname) in my web browser. If i type it in via IP of
> 66.61.41.55 it works fine. Any suggestions?