]> granicus.if.org Git - apache/commitdiff
fix a misleading example that implies ServerName has precedence over a ServerAlias.
authorEric Covener <covener@apache.org>
Fri, 16 Mar 2012 09:45:01 +0000 (09:45 +0000)
committerEric Covener <covener@apache.org>
Fri, 16 Mar 2012 09:45:01 +0000 (09:45 +0000)
We stop when a vhost matches for any reason (not 2.4 specific).  Mention this explicitly.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1301398 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/core.xml
docs/manual/vhosts/name-based.xml

index ae6f147957c6980c7dc892eeb12527d93e7573cc..f8147140cfd499a3238ed11e09f18b3f6d8529b2 100644 (file)
@@ -3777,6 +3777,13 @@ to name-virtual hosts</description>
       # ...<br />
       &lt;/VirtualHost&gt;
     </example>
+
+    <p>Name-based virtual hosts for the best-matching set of  <directive
+    type="section" module="core">virtualhost</directive>s are processsed
+    in the order they appear in the configuration.  The first matching <directive
+    module="core">ServerName</directive> or <directive module="core"
+    >ServerAlias</directive> is used, with no different precedence for wildcards
+    (nor for ServerName vs. ServerAlias).  </p>
 </usage>
 <seealso><directive module="core">UseCanonicalName</directive></seealso>
 <seealso><a href="../vhosts/">Apache HTTP Server Virtual Host documentation</a></seealso>
index da8598e248192efc9512a25516b1755d13124d88..63ae0efab25a3a083cc824c761a8ce9d88ef826e 100644 (file)
         <indent>
             # This first-listed virtual host is also the default for *:80
             ServerName www.example.com<br />
-            ServerAlias example.com *.example.com<br />
+            ServerAlias example.com <br />
             DocumentRoot /www/domain<br />
         </indent>
         &lt;/VirtualHost&gt;<br />
     first have your DNS server properly configured to map those names to an IP
     address associated with your server.</p>
 
+    <p>Name-based virtual hosts for the best-matching set of  <directive
+    type="section" module="core">virtualhost</directive>s are processsed 
+    in the order they appear in the configuration.  The first matching <directive
+    module="core">ServerName</directive> or <directive module="core"
+    >ServerAlias</directive> is used, with no different precedence for wildcards
+    (nor for ServerName vs. ServerAlias).  </p>
+
     <p>Finally, you can fine-tune the configuration of the virtual hosts
     by placing other directives inside the <directive type="section"
     module="core">VirtualHost</directive> containers. Most directives can be