From 8f1c86d39f8ef28a8f4139877d525050cda1d4d9 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 15 Mar 2011 09:42:37 +0000 Subject: [PATCH] The name for the default host does not have to be resolvable in DNS. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1081698 13f79535-47bb-0310-9956-ffa450edef68 --- webapps/docs/config/host.xml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/webapps/docs/config/host.xml b/webapps/docs/config/host.xml index cb60d5631..53660f523 100644 --- a/webapps/docs/config/host.xml +++ b/webapps/docs/config/host.xml @@ -39,11 +39,11 @@

The Host element represents a virtual host, which is an association of a network name for a server (such as - "www.mycompany.com" with the particular server on which Catalina is - running. In order to be effective, this name must be registered in the - Domain Name Service (DNS) server that manages the Internet - domain you belong to - contact your Network Administrator for more - information.

+ "www.mycompany.com" with the particular server on which Tomcat is running. + For clients to be able to connect to a Tomcat server using its network name, + this name must be registered in the Domain Name Service (DNS) server + that manages the Internet domain you belong to - contact your Network + Administrator for more information.

In many cases, System Administrators wish to associate more than one network name (such as www.mycompany.com and @@ -58,6 +58,15 @@ associated with each Engine MUST have a name matching the defaultHost attribute of that Engine.

+

Clients normally use host names to identify the server they wish to connect + to. This host name is also included in the HTTP request headers. Tomcat + extracts the host name from the HTTP headers and looks for a + Host with a matching name. If no match is found, the request + is routed to the default host. The name of the default host does not have to + match a DNS name (although it can) since any request where the DNS name does + not match the name of a Host element will be routed to the + default host.

+

The description below uses the variable name $CATALINA_BASE to refer the base directory against which most relative paths are resolved. If you have @@ -169,9 +178,9 @@ -

Network name of this virtual host, as registered in your +

Usually the network name of this virtual host, as registered in your Domain Name Service server. Regardless of the case used to - specify the hostname, Tomcat will convert it to lower case internally. + specify the host name, Tomcat will convert it to lower case internally. One of the Hosts nested within an Engine MUST have a name that matches the defaultHost setting for that Engine. See Host Name Aliases for -- 2.11.0