tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dean A. Hoover" <>
Subject apache 2, tomcat 5, and ROOT application
Date Thu, 26 Feb 2004 22:25:43 GMT
Tomcat 5 uses ROOT for the root application,
and whatever for other applications. For
example, I am keeping my content in its
own hierarchy:


I want apache to handle static content
and tomcat to handle servlet related
stuff (jsp, etc). I am wondering how
to specify that in httpd.conf. If I set
DocumentRoot to /home/mywebsite/webapps/ROOT/
that will work for but
it will not find myapp. If I set it to
/home/mywebsite/webapps/ it can find, but then I don't
know how it can find the ROOT directory.

Here's an httpd.conf snippet:
<VirtualHost *:80>
   DocumentRoot /home/tomcat/
   ErrorLog /home/tomcat/
   CustomLog /home/tomcat/ common

   # Deny direct access to WEB-INF and META-INF
   <Location "/WEB-INF">
     AllowOverride None
     deny from all

#  <Location "/META-INF">
     AllowOverride None
     deny from all

   JkMount /*.jsp mywebsite
Any ideas?

Dean Hoover

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message