tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Getting OpenBlueDragon and Tomcat to traverse directories
Date Mon, 28 Jul 2008 01:21:32 GMT
> From: rnaheed@nvek.com [mailto:rnaheed@nvek.com]
> Subject: Getting OpenBlueDragon and Tomcat to traverse directories

Please post in plain text and leave in the < and > symbols.  Lack of them makes it much
harder to examine your XML for correctness.

>       Host name="mysite.com" appBase="/var/www/html/mysite"

It's a really bad idea to use the same directory for both Tomcat and httpd; at a bare minimum,
it allows divulging of webapp code.

>         Context path="" docBase="." debug="0" reloadable="true" /

You must never, never have a docBase of "."; each webapp should be deployed *under*, not in,
the appBase directory.  Also, putting <Context> elements in server.xml is strongly discouraged
these days.  Your default webapp should be named ROOT (case sensitive); if you do that, you
don't need a <Context> element at all for this situation.

 - 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message