Java Mailing List Archive

http://www.junlu.com/

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

bad URI request matching? - in mod_jk2 for apache2

Justin Walters

2004-01-20


I have compiled mod_jk2 without JNI, for apache2. I've gotten the
config to work and catch requests for apps successfully, but it appears
that the wildcard matching is overly inclusive somehow.

Example:   I've mapped these URI's to do ajp13 with mod_jk2:
/app/*.jsp
/app/*.swf
/app/*.css
/app/images/*

(I don't do /app/* because there are other files through apache that use
that same path)

the problem is that when I try to access a CSS file in the root
directory, it gets sent through mod_jk2 as well:
/styles.css

but html files work fine, presumably because there is no sign of a .html
entry anywhere;
/index.html

Is this a known problem? I have a number of apps that do this, and I do
the config file in Apache conf syntax because someone mentioned that
Apache's URI parsing is (understandably) more efficient. If it would
help, I can provide the conf file and my workers2.properties file.


Justin

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