tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Apache DirectoryIndex and mod_jk ForwardDirectories not playing nicely
Date Mon, 06 Oct 2008 19:40:58 GMT
Hash: SHA1


> I'm trying to configure mod_jk 1.2.16.with Apache 1.3.26 and tomcat
> 5.0.28 on Solaris 9. I compiled the mod_jk from source for the Apache
> version. Unfortunately, I'm stuck with this environment.

Ouch. Thanks for pointing out that you are stuck, as I'm sure a lot of
folks (including me) would say "wow, that environment is outdated and
you should really upgrade".

You should be aware that Tomcat 5.0 is now no longer supported at all
(though the other components are supported at various patch levels...
upgrading to httpd 1.3.41 would be a good idea, though).

> <VirtualHost>
> DocumentRoot /cust/IBMHttpServer/htdocs/data
> ServerName
> ScriptAlias /cgi-bin /cust/IBMHttpServer/cgi-bin
> DirectoryIndex /EDS/index.shtml

This is a very odd configuration. Check for
configuration syntax. I think that having a / in the DirectoryIndex file
is contributing to the confusion. Are you attempting to set the file
that is served for
to instead serve /EDS/index.shtml? I think you want to do that with
either 'Redirect' or 'Rewrite', not by using DirectoryIndex.

> RewriteEngine on
> RewriteRule .* - [F]

Note that this can be done with simpler <Limit> configuration, and
mod_rewrite is kind of a beast.

> JkOptions +ForwardDirectories

You may need to repeat this in your VirtualHost. Note that Tomcat only
gets a crack at the directory request if httpd doesn't find anything.
So, if the request is being served by Tomcat, then your apache httpd
configuration is broken. Why do you want Tomcat serving these
directories, anyway?

> Does anyone have any ideas? I tried increasing the Apache log level
> to debug, thinking it could be a mod_dir problem, but there was no
> additional logging output.
I'm not sure I really understand what you're trying to accomplish. I see
what the configuration is trying to do, but maybe if I understood what
you were really trying to do, I might be able offer a more natural solution.

- -chris
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message