On 16.12.2008 18:53, Payne, George (ghp5h) wrote:
This is a problem I've seen reported on very old versions of mod_jk, but it
seems (apparently) to have a new life in 1.2.27 and possibly other recent
versions.

If a user puts a double slash (http://mysite.com//myapp/myjsp.jsp) instead
of a single slash in a url, apache does not recognize it as part of a normal
pattern (eg JkMount /myapp/*.jsp) to be forwarded to tomcat and displays it
as html/text instead of as a jsp, revealing the source.

My system:

Httpd: Apache 2.0.46

Jk: 1.2.27 (from binary posted on
http://apache.mirrors.timporter.net/tomcat/tomcat-connectors/jk/binaries/lin
ux/jk-1.2.27/i386/mod_jk-1.2.27-httpd-2.0.61.so)

Tomcat: 5.5.27

I'd be happy to hear someone say I misconfigured something, but I'm not sure
what I could misconfigure to make this happen.

I've worked around by doing things like

JkMount /*.jsp ajp13

JkMount /*.do ajp13

Etc, but this is not a good solution.

First of all I can not reproduce this. I used mod_jk 1.2.27, but httpd 2.2. The URL we check against JkMount should already be normalized by httpd at the time we use it.

Please:

- Check again with a recent httpd, either 2.0.63 or 2.2.10/2.2.11. 2.0.46 was released more than 5 years ago.

- If you can reproduce with a relative recent httpd 2.0 or 2.2, please post your configuration (httpd and mod_jk) and also do one of the problematic requests when running JK with JkLogLevel debug and post the resulting JkLogFile.

I assume you used the "JkMount PATTERN WORKER" Syntax and not the short syntax "JkMount WORKER" inside a Directory(Match) or Location(Match) element?

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to