Jk2 is deprecated, so you may want to switch to mod_jk 1.2.8 which now has all the jk2 features. Since that can be rather involved for some people, you can use PCRE in Apache 2.x.
I haven't tried this, but it should work. <LocationMatch "^/.*\.(?!(jpg|gif|css))"> This definitely works for leading path negative matches on /css and /images: <LocationMatch "^/(?!(images|css))"> now you can work on switching to tomcat ;) Charlie > -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of John Patterson > Sent: Wednesday, January 26, 2005 4:34 AM > To: [email protected] > Subject: Apache JK2 negative match > > Hi, > > I am trying to get Apache 2.0 to forward all requests to a load balanced Jetty > pair via mod_jk2 EXCEPT static resources such as .jpg files. > > Has anyone done this? > > What I would like is some kind of negative match > > <Location !~ "/.*\.(jpg|gif|css)"> > JkUriSet group ajp13:localhost:8009 > </Location> > > Of course this syntax does not exist! But how else can I do it? > > Thanks, > > John > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
