From: Eric Covener
Date: Fri, 16 Mar 2012 09:47:02 +0000 (+0000)
Subject: Merge r1301398, r1301399 from trunk:
X-Git-Tag: 2.4.2~177
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19358c20eddeed3f3a90a80b002aa273049b562c;p=apache
Merge r1301398, r1301399 from trunk:
fix a misleading example that implies ServerName has precedence over a ServerAlias.
We stop when a vhost matches for any reason (not 2.4 specific). Mention this explicitly.
xforms
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1301400 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/core.html.en b/docs/manual/mod/core.html.en
index 8582d30876..123c3b7c4c 100644
--- a/docs/manual/mod/core.html.en
+++ b/docs/manual/mod/core.html.en
@@ -3755,6 +3755,10 @@ to name-virtual hosts
</VirtualHost>
+ Name-based virtual hosts for the best-matching set of <virtualhost>
s are processsed
+ in the order they appear in the configuration. The first matching ServerName
or ServerAlias
is used, with no different precedence for wildcards
+ (nor for ServerName vs. ServerAlias).
+
See also
UseCanonicalName
diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml
index ef60f2f268..d877a7c1b6 100644
--- a/docs/manual/mod/core.xml
+++ b/docs/manual/mod/core.xml
@@ -3746,6 +3746,13 @@ to name-virtual hosts
# ...
</VirtualHost>
+
+ Name-based virtual hosts for the best-matching set of virtualhosts are processsed
+ in the order they appear in the configuration. The first matching ServerName or ServerAlias is used, with no different precedence for wildcards
+ (nor for ServerName vs. ServerAlias).
UseCanonicalName
Apache HTTP Server Virtual Host documentation
diff --git a/docs/manual/vhosts/name-based.html.en b/docs/manual/vhosts/name-based.html.en
index b5de7a061d..6223539df8 100644
--- a/docs/manual/vhosts/name-based.html.en
+++ b/docs/manual/vhosts/name-based.html.en
@@ -118,7 +118,7 @@
# This first-listed virtual host is also the default for *:80
ServerName www.example.com
- ServerAlias example.com *.example.com
+ ServerAlias example.com
DocumentRoot /www/domain
</VirtualHost>
@@ -153,6 +153,10 @@
first have your DNS server properly configured to map those names to an IP
address associated with your server.
+ Name-based virtual hosts for the best-matching set of <virtualhost>
s are processsed
+ in the order they appear in the configuration. The first matching ServerName
or ServerAlias
is used, with no different precedence for wildcards
+ (nor for ServerName vs. ServerAlias).
+
Finally, you can fine-tune the configuration of the virtual hosts
by placing other directives inside the <VirtualHost>
containers. Most directives can be
placed in these containers and will then change the configuration only of
diff --git a/docs/manual/vhosts/name-based.xml b/docs/manual/vhosts/name-based.xml
index da8598e248..63ae0efab2 100644
--- a/docs/manual/vhosts/name-based.xml
+++ b/docs/manual/vhosts/name-based.xml
@@ -132,7 +132,7 @@
# This first-listed virtual host is also the default for *:80
ServerName www.example.com
- ServerAlias example.com *.example.com
+ ServerAlias example.com
DocumentRoot /www/domain
</VirtualHost>
@@ -171,6 +171,13 @@
first have your DNS server properly configured to map those names to an IP
address associated with your server.
+ Name-based virtual hosts for the best-matching set of virtualhosts are processsed
+ in the order they appear in the configuration. The first matching ServerName or ServerAlias is used, with no different precedence for wildcards
+ (nor for ServerName vs. ServerAlias).
+
Finally, you can fine-tune the configuration of the virtual hosts
by placing other directives inside the VirtualHost containers. Most directives can be