From 9ca325c711a81041a14cd9c412f401968b0171dc Mon Sep 17 00:00:00 2001 From: Joshua Slive Date: Wed, 6 Feb 2002 21:34:10 +0000 Subject: [PATCH] Document the new default behavior for ServerName and improve the readability a little. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93316 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/core.html | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/docs/manual/mod/core.html b/docs/manual/mod/core.html index b2e9c46465..65a1affa4c 100644 --- a/docs/manual/mod/core.html +++ b/docs/manual/mod/core.html @@ -2342,19 +2342,30 @@ rel="Help">Context: server config, virtual host
Status: core - -

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:

+ rel="Help">Status: core
+ Compatibility: In version 2.0, this + directive supercedes the functionality of the Port + directive from version 1.3. + +

The ServerName directive sets the hostname and + port that the server uses to identify itself. This is used when + creating redirection URLs. For example, if the name of the + machine hosting the webserver is simple.example.com, + but the machine also has the DNS alias www.example.com + and you wish the webserver to be so identified, the following + directive should be used:

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

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 servername, then the + server will use the port from the incoming request. For optimal + reliability and predictability, you should specify an explict + hostname and port using the ServerName directive.

If you are using name-based virtual hosts, @@ -2363,14 +2374,6 @@ section specifies what hostname must appear in the request's Host: header to match this virtual host.

-

This directive now allows a port to be added to the - server name. This allows an admin to assign the canonical - port at the same time that the canonical name is assigned. - If no port was specified, Apache implies port 80 for http:// - and port 443 for https:// requests.
- The Port directive in Apache-1.3, which used to perform - this role, has been removed, easing configuration for all users.

-

See the description of the UseCanonicalName directive for settings which determine whether self-referential URL's (e.g., by the -- 2.50.1