From: Eric Covener Date: Fri, 5 Jul 2013 15:27:39 +0000 (+0000) Subject: address comment http://httpd.apache.org/docs/2.4/vhosts/examples.html#comment_1441 by X-Git-Tag: 2.5.0-alpha~5268 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5503d2f0e90f417e8fafc4ea12419e10069cb1f7;p=apache address comment http://httpd.apache.org/docs/2.4/vhosts/examples.html#comment_1441 by explicitly mentioning that ServerName may be calculated and inherited. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1500042 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/vhosts/name-based.xml b/docs/manual/vhosts/name-based.xml index 9fbf2ad44e..c35c2b9ce1 100644 --- a/docs/manual/vhosts/name-based.xml +++ b/docs/manual/vhosts/name-based.xml @@ -122,6 +122,19 @@ virtual hosts.

+ ServerName inheritance +

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.