Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

apache, tomcat wan't run ROOT/index.jsp

Matthias Teege

2003-12-03


Moin,

I've setup apache 2.0.48 and tomcat/4.1.29 sucessfully. I also
setup a demo application (JSPWiki) on a virtual host like this:

server.xml
<Host name="doc.mteege.de" address="192.168.18.184">
 <Context path="" docBase="/opt/tomcat/webapps/JSPWiki" debug="0" />
 <ApacheConfig forwardAll="true" noRoot="false" />
</Host>

httpd.conf
<VirtualHost *:80>
  DocumentRoot "/opt/tomcat/webapps/JSPWiki"
  DirectoryIndex Wiki.jsp
  ServerName doc.mteege.de
  <IfModule mod_jk.c>
    JkMount /*.jsp ajp13
  </IfModule>  
</VirtualHost>

This works great and I try to setup another virtual host which
serve the default tomcat index.jsp and the demo apps.

server.xml
<Host name="cat.mteege.de" address="192.168.18.184">
<Context path="" docBase="webapps/ROOT" debug="0" />
<ApacheConfig forwardAll="true" noRoot="false" />
</Host>

httpd.conf
<VirtualHost *:80>
  DocumentRoot "/opt/tomcat/webapps"
  DirectoryIndex index.jsp
  ServerName cat.mteege.de
  <IfModule mod_jk.c>
    JkMount /*.jsp ajp13
  </IfModule>  
</VirtualHost>

I get the get the index.jsp but if I try to load the demo app
folder I get a 404 error from tomcat. I think there is a mismatch
between the apache DocumentRoot and the Tomcat docBase but If I use
docBase="webapps" I only get a indexview of the webapps folder.

What do I missing?

Many thanks
Matthias

--
Matthias Teege -- http://www.mteege.de
make world not war


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.