From 2e34cdff996753aa37011c94cec732f5b5ad3279 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Mon, 22 Dec 2014 00:44:01 +0000 Subject: [PATCH] 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 --- docs/manual/mod/core.xml | 6 ++++-- docs/manual/vhosts/name-based.xml | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index a04834c82a..324d1c5f79 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 4bac3fc229..c64df7e19d 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 -- 2.50.1