From d7ab2b3effe3b1f7bba391369a8181abcc72fc01 Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 13 Sep 2007 11:32:38 +0000 Subject: [PATCH] Take account of bug 39013. Not sure if it is valid but there is a warning about it in the context docs. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@575262 13f79535-47bb-0310-9956-ffa450edef68 --- webapps/docs/virtual-hosting-howto.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/webapps/docs/virtual-hosting-howto.xml b/webapps/docs/virtual-hosting-howto.xml index d38cdb7d1..06be98deb 100644 --- a/webapps/docs/virtual-hosting-howto.xml +++ b/webapps/docs/virtual-hosting-howto.xml @@ -48,8 +48,8 @@

<Engine name="Catalina" defaultHost="ren"> - <Host name="ren" appBase="webapps-ren"/> - <Host name="stimpy" appBase="webapps-stimpy"/> + <Host name="ren" appBase="renapps"/> + <Host name="stimpy" appBase="stimpyapps"/> </Engine>

@@ -68,8 +68,8 @@ Create directories for each of the virtual hosts:

-mkdir $CATALINA_HOME/webapps-ren -mkdir $CATALINA_HOME/webapps-stimpy +mkdir $CATALINA_HOME/renapps +mkdir $CATALINA_HOME/stimpyapps @@ -78,10 +78,10 @@ mkdir $CATALINA_HOME/webapps-stimpy

Contexts are normally located underneath the appBase directory. For example, to deploy the foobar context as a war file in the ren host, use - $CATALINA_HOME/webapps-ren/foobar.war. Note that the + $CATALINA_HOME/renapps/foobar.war. Note that the default or ROOT context for ren would be deployed as - $CATALINA_HOME/webapps-ren/ROOT.war (WAR) or - $CATALINA_HOME/webapps-ren/ROOR (directory). + $CATALINA_HOME/renapps/ROOT.war (WAR) or + $CATALINA_HOME/renapps/ROOR (directory).

NOTE: The docBase for a context should never be the same as the appBase for a host. @@ -92,7 +92,7 @@ mkdir $CATALINA_HOME/webapps-stimpy Within your Context, create a META-INF directory and then place your Context definition in it in a file named context.xml. i.e. - $CATALINA_HOME/webapps-ren/ROOT/META-INF/context.xml + $CATALINA_HOME/renapps/ROOT/META-INF/context.xml This makes deployment easier, particularly if you're distributing a WAR file.

-- 2.11.0