httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: Clarification on NameVirtualHost and VirtualHost sections
Date Mon, 24 Sep 2007 20:28:28 GMT
On 9/22/07, Michael Rasmussen <> wrote:
> Joshua Slive wrote:
> > >   If a <VirtualHost> block does not contain a ServerName statement the
> > >   of the computer will be used.
> >
> > Not quite. It should be "Each <VirtualHost> block should contain a
> > ServerName. If it is absent, the ServerName from the main server
> > configuration will be used."

Committed something like this to trunk and will backport to 2.2.

> Unless there's no ServerName in the main server configuration.  Then it pulls
> the hostname.   Ubunutu, for example, defaults to this situation.

It uses the default ServerName, which is indeed taken from the
hostname. This is actually an Ubuntu bug if they have no ServerName in
the main server context, because this forces Apache to do a reverse
DNS lookup at startup, needlessly placing a dependency on DNS.
All apache configs should have a main context ServerName, even if you
know it will never be used for anything.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message