On 23/06/07, Ioannis Cherouvim <[EMAIL PROTECTED]> wrote:
Hello

Hi,

I want to forward all http requests to tomcat, except from static files
such as jpg, png etc.

<LocationMatch
"^/(?!(*.js|*.png|*.jpg|*.bmp|*.gif|*.ico|*.swf|*.xml|*.pdf|*.doc|*.xls|*.zip|*.txt))">
  JkUriSet worker ajp13:localhost:8009
</LocationMatch>

You seem to have your regex syntax a little muddled. You've got (?!
which is fine for negative lookahead, but *. is shell wildcard syntax,
not regex.

<LocationMatch (?!(js|png|etc)$)>

.. perhaps, though I haven't tried it. It's a shame you're not using
the more up-to-date mod_proxy_ajp rather than mod_jk as then you'd be
able to use mod_rewrite for this and get negated matching, rather than
confusing assertions.

--
noodl

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to