tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Apache DirectoryIndex and mod_jk ForwardDirectories not playing nicely
Date Mon, 06 Oct 2008 19:40:58 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Charlotte,

> 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 10.10.10.10:80>
> DocumentRoot /cust/IBMHttpServer/htdocs/data
> ServerName www.domain.com
> ScriptAlias /cgi-bin /cust/IBMHttpServer/cgi-bin
> DirectoryIndex /EDS/index.shtml

This is a very odd configuration. Check
http://httpd.apache.org/docs/1.3/mod/mod_dir.html#directoryindex 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 http://www.domain.com/any/path/that/might/be/there/
to instead serve /EDS/index.shtml? I think you want to do that with
either 'Redirect' or 'Rewrite', not by using DirectoryIndex.

> RewriteEngine on
> RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
> 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjqacoACgkQ9CaO5/Lv0PA4kQCfS3oABTbgUVpLpPOYIChthlIT
GlMAoL1cXDEJEJDkcdn5LBxF++x07osW
=SPdJ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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