httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Quade <>
Subject [users@httpd] DocumentRoot works but subdirectories do not
Date Sat, 07 Feb 2004 05:03:56 GMT
I am trying to set up my server so that the DocumentRoot and all of its 
subdirectories will look for a file named index.jsp (tomcat is running 
and I believe it is set up correctly), and if index.jsp is not present 
it will list the files in the requested directory.  This works on a site 
that I have with a web hosting company when I upload the exact same 
application, but I can not make it work on my server and I can't look at 
their configuration files to see how they set it up.

I am not using tomcat's automatically generated configuration file.  I 
have included a configuration file that I wrote at the end of httpd.conf 
(I am using NameVirtualHost) for my web application which is set up like 
this (the irrelevant directives are left out for clarity):

  DocumentRoot /usr/local/tomcat/webapps/
  <Directory />
    DirectoryIndex index.jsp
    Options Indexes

This works fine when I request  But if I request, all I get is an error message from tomcat that says, 
"HTTP Status 404 - /index.jsp".  However, there is an index.jsp in 
/subdir, which is why I think I have apache set up incorrectly, and not 
tomcat.  It works fine for the root url of my application, but not for 
any subdirectories even though they have an index.jsp.  I tried creating 
a <Directory /*> directive for apache, hoping that would include all 
subdirectories, but that didn't work and the mod_rewrite documentation 
seems to be written only for people who are already experts.

It is really important that I get this working, and I thought it would 
be really easy to set up but it isn't.  Can anyone point me in the right 

I am using apache 2.0, tomcat 4.1.29, and Red Hat Linux 9.0.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message