> From: linuxChique [mailto:[EMAIL PROTECTED] 
> Subject: How to change docroot?
> 
> How do I change the docroot in Tomcat?
>
> I'm currently serving from
> /usr/local/apache-tomcat-5.5.25/webapps/ROOT
> and I want to be serving from /var/www/html.

Delete the webapps/ROOT directory and create the file
conf/Catalina/[host]/ROOT.xml containing the following (add any other
attributes you need):

<Context docBase="/var/www/html">
</Context>

The [host] value in the above location is usually localhost, unless
you've modified conf/server.xml.

Docs are here:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 - 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@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to