]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
PR64997: clarify hostnames inside <virtualhost> tag
authorEric Covener <covener@apache.org>
Thu, 17 Dec 2020 14:41:53 +0000 (14:41 +0000)
committerEric Covener <covener@apache.org>
Thu, 17 Dec 2020 14:41:53 +0000 (14:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884555 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/vhosts/name-based.xml

index b6651b734ba728732fb3bc7a508605c477919f27..4f0ede6487e3dcadf8a734c5a22e249e6185fe47 100644 (file)
     first have your DNS server properly configured to map those names to an IP
     address associated with your server.</p>
 
+    <p>Typically, IP addresses of local interfaces or the wildcard '*' are specified within the 
+    <directive type="section" module="core">virtualhost</directive> tag and hostnames are
+    specified only in <directive module="core">ServerName</directive> or <directive module="core"
+    >ServerAlias</directive>.  When a hostname is specified within the virtualhost tag,
+    its addresses are resolved and added for IP based virtual host resolution and the hostname:port
+    combination is also checked prior to ServerName and ServerAlias checks for name-based virtual host
+    resolution.  The use of hostnames within the virtualhost tag is relatively obscure, error prone,
+    and should generally be avoided.
+    </p>
+
     <p>Name-based virtual hosts for the best-matching set of  <directive
     type="section" module="core">virtualhost</directive>s are processed
     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>The complete list of names in the <directive module="core"
-    >VirtualHost</directive>
-    directive are treated just like a (non wildcard)
-    <directive module="core">ServerAlias</directive>.</p>
+    (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"