tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: Is there a way to remap/replace webapps/ROOT?
Date Mon, 16 Oct 2006 18:46:28 GMT
> From: Rizalino DeVilleres [] 
> Subject: RE: Is there a way to remap/replace webapps/ROOT?
> server.xml
>  <Host name="localhost"
> appBase="/path/to/public_html" deployOnStartup="true"

This says your webapps will normally be deployed in
/path/to/public_html; is that what you want?

> public_html.xml:
> <Context path="" debug="0" swallowOutput="true">
> </Context>

The path attribute is not allowed, unless the <Context> element is in
server.xml, which is not recommended.  The actual path to the app is
determined by the name of the .xml file in conf/Catalina/localhost or
the name of the properly formatted directories or .war files under
webapps.  If you want a particular app to be the default app, its
<Context> element should be in a file named ROOT.xml in
conf/Catalina/localhost with a docBase attribute pointing to the
location of the app.

> This setup is still working with Tomcat/4.1.18.

Context configuration has changed significantly since then.

Just to clarify:

1) What is the actual file system path of your default webapp?
2) What is the actual value of the appBase attribute for your <Host>

 - Chuck

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message