From: Eric Covener
It is best to always explicitly list a ServerName
in every name-based virtual host.
If a VirtualHost
doesn't specify
+ a ServerName
, a server name will be
+ inherited from the base server configuration. If no server name was
+ specified globally, one is detected at startup through reverse DNS resolution
+ of the first listening address. In either case, this inherited server name
+ will influenced name-based virtual host resolution, so it is best to always
+ explicitly list a ServerName
in every
+ name-based virtual host.
For example, suppose that you are serving the domain
www.example.com
and you wish to add the virtual host
other.example.com
, which points at the same IP address.