Is there a way to remap/replace webapps/ROOT?
- From: "Caldarale, Charles R" <Chuck.Caldarale (at) unisys.com>
- Date: Mon, 16 Oct 2006 13:46:28 -0500
> From: Rizalino DeVilleres [mailto:RDeVilleres (at) primustel.ca]
> 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>
element?
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
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: users (at) tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe (at) tomcat.apache.org
For additional commands, e-mail: users-help (at) tomcat.apache.org