]> granicus.if.org Git - apache/commitdiff
xform
authorEric Covener <covener@apache.org>
Fri, 5 Jul 2013 15:29:35 +0000 (15:29 +0000)
committerEric Covener <covener@apache.org>
Fri, 5 Jul 2013 15:29:35 +0000 (15:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1500044 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/vhosts/name-based.html.en

index 63aea3316907aa4940c6a10b0829133bfd5b147b..79f7bccbde5dd22697867b59bce2591d21043f46 100644 (file)
         virtual hosts.</p>
     </div>
 
+    <div class="note"><h3>ServerName inheritance</h3>
+       <p> It is best to always explicitly list a  <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> in every name-based virtual host.</p>
+       <p>If a <code class="directive"><a href="../mod/core.html#virtualhost">VirtualHost</a></code> doesn't specify 
+       a <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>, 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  <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> in every
+       name-based virtual host.</p>
+    </div>
+
     <p>For example, suppose that you are serving the domain
     <code>www.example.com</code> and you wish to add the virtual host
     <code>other.example.com</code>, which points at the same IP address.