From c9d331202ed6c3566386c64b64f02c4804e402d7 Mon Sep 17 00:00:00 2001 From: markt Date: Sat, 4 Nov 2006 21:37:20 +0000 Subject: [PATCH] Port fix bug 40823. Better context docs. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@471266 13f79535-47bb-0310-9956-ffa450edef68 --- webapps/docs/config/context.xml | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/webapps/docs/config/context.xml b/webapps/docs/config/context.xml index 989f5cfe9..89e719b2e 100644 --- a/webapps/docs/config/context.xml +++ b/webapps/docs/config/context.xml @@ -37,36 +37,37 @@ directory hierarchy).

You may define as many Context elements as you - wish. Each such Context MUST have a unique - context path, which is defined by the path attribute. - In addition, you MUST define a Context with a context path equal to + wish. Each such Context MUST have a unique context path. In + addition, a Context must be present with a context path equal to a zero-length string. This Context becomes the default web application for this virtual host, and is used to process all requests that do not match any other Context's context path.

-

In addition to nesting Context elements inside a - Host element, you can also store them:

+

For Tomcat 6, unlike Tomcat 4.x, it is NOT recommended to place + <Context> elements directly in the server.xml file. This + is because it makes modifing the Context configuration + more invasive since the main conf/server.xml file cannot be + reloaded without restarting Tomcat.

+ +

Context elements may be explicitly defined:

-

See - Automatic - Application Deployment for more information. This method allows dynamic - reconfiguration of the web application, since the main - conf/server.xml file cannot be reloaded without restarting - Tomcat. Please note that for tomcat 6, unlike tomcat 4.x, it is NOT - recommended to place <Context> elements directly in the server.xml file. - Instead, put them in the META-INF/context.xml directory of your WAR file or - the conf directory as described above.

In addition to explicitly specified Context elements, there are -- 2.11.0