From 4e53c8748e0819ff37e84249c82f5dd3d8c2f469 Mon Sep 17 00:00:00 2001
From: Eric Covener
Date: Thu, 17 Dec 2020 14:41:53 +0000
Subject: [PATCH] PR64997: clarify hostnames inside tag
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884555 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/vhosts/name-based.xml | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/docs/manual/vhosts/name-based.xml b/docs/manual/vhosts/name-based.xml
index b6651b734ba..4f0ede6487e 100644
--- a/docs/manual/vhosts/name-based.xml
+++ b/docs/manual/vhosts/name-based.xml
@@ -187,17 +187,23 @@
first have your DNS server properly configured to map those names to an IP
address associated with your server.
+ Typically, IP addresses of local interfaces or the wildcard '*' are specified within the
+ virtualhost tag and hostnames are
+ specified only in ServerName or ServerAlias. 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.
+
+
Name-based virtual hosts for the best-matching set of virtualhosts are processed
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).
-
- The complete list of names in the VirtualHost
- directive are treated just like a (non wildcard)
- ServerAlias.
+ (nor for ServerName vs. ServerAlias).
+
Finally, you can fine-tune the configuration of the virtual hosts
by placing other directives inside the