From: Eric Covener
Date: Mon, 22 Dec 2014 00:44:01 +0000 (+0000)
Subject: some tweaks for no ServerName from PR57384
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95661b408f3b47be319d4b10ac5fdbaab60a740e;p=thirdparty%2Fapache%2Fhttpd.git
some tweaks for no ServerName from PR57384
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1647229 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml
index a04834c82aa..324d1c5f79a 100644
--- a/docs/manual/mod/core.xml
+++ b/docs/manual/mod/core.xml
@@ -3899,8 +3899,10 @@ itself
server).
If no ServerName is specified, then the
- server attempts to deduce the hostname by performing a reverse
- lookup on the IP address. If no port is specified in the
+ server attempts to deduce the client visible hostname by performing a
+ reverse lookup on an IP address of the systems hostname.
+
+ If no port is specified in the
ServerName, then the server will use the
port from the incoming request. For optimal reliability and
predictability, you should specify an explicit hostname and port
diff --git a/docs/manual/vhosts/name-based.xml b/docs/manual/vhosts/name-based.xml
index 4bac3fc229a..c64df7e19d9 100644
--- a/docs/manual/vhosts/name-based.xml
+++ b/docs/manual/vhosts/name-based.xml
@@ -76,6 +76,12 @@
module="core">ServerAlias directives to the server name
present in the request.
+ If you omit the ServerName
+ directive from any name-based virtual host, the server will default
+ to a fully qualified domain name (FQDN) derived from the system hostname.
+ This implicitly set server name can lead to counter-intuitive virtual host
+ matching and is discouraged.
+
The default name-based vhost for an IP and port combination
If no matching ServerName or ServerAlias is found in the set of
virtual hosts containing the most specific matching IP address and port