From: Tony Finch Date: Tue, 16 Nov 1999 12:16:20 +0000 (+0000) Subject: explain how ServerName interacts with NameVirtualHost better X-Git-Tag: 1.3.10~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ab5b2f8b3b071510cd9ea9e0415efe01b52700d;p=apache explain how ServerName interacts with NameVirtualHost better git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84125 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/core.html b/docs/manual/mod/core.html index 0aa8ad84ad..801589e92f 100644 --- a/docs/manual/mod/core.html +++ b/docs/manual/mod/core.html @@ -2768,16 +2768,26 @@ with REL="Help" >Status: core

-The ServerName directive sets the hostname of the server; this is only +The ServerName directive sets the hostname of the server; this is used when creating redirection URLs. If it is not specified, then the server attempts to deduce it from its own IP address; however this may not work reliably, or may not return the preferred hostname. For example: -

ServerName www.wibble.com
+
ServerName www.example.com
would be used if the canonical (main) name of the actual machine -were monster.wibble.com.

+were simple.example.com.

+ +If you are using name-based +virtual hosts, the ServerName inside a +<VirtualHost> +section specifies what hostname must appear in the request's +Host: header to match this virtual host.

+

See Also:
DNS Issues
+Apache virtual host documentation
UseCanonicalName
+NameVirtualHost
+ServerAlias