httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Dessent <>
Subject Re: [users@httpd] Problem with multiple virtual hosts and dynamicdns
Date Sat, 26 Jul 2003 06:50:04 GMT
Gregg Donley wrote:

> difference.  I guess I don't understand exactly what information
> apache uses to select the virtual host.  I
> though it was something in the http request that was sent by the
> client, but I could be wrong.  As for the

You are correct, it knows which virtual host to serve based on either
the "Host:" field sent by the client (HTTP/1.1) or the host portion of
the URL (HTTP/1.0).  If neither of these is present, it must revert to
the default domain as it has no way of knowing which virutal server the
client is referring to.  Running Ethereal (or whatever) will definitely
tell you if it's an Apache problem or not, since the headers will all be
right there.  I also suggest you get friendly with some of the command
line tools such as 'wget' or 'curl' which can be invaluable for
debugging such things.  They can print all the HTTP headers for a
session, they can be told not to follow HTTP redirects, and they
(naturally) do not know anything about framesets or any other
redirection done in the body of the page.  Therefore it's very easy to
figure out exactly what's going on and how the redirects are doing what
they're doing.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message