Excluding filetypes with <LocationMatch>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

I've got apache 2 with jk2 fronting tomcat 5.0.28.
I want to forward all http requests to tomcat, except from static files such as jpg, png etc.

This is what I've tried but it doesn't seem to work.

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


Right now I use the following:
<Location "/*">
 JkUriSet worker ajp13:localhost:8009
</Location>

which is not what I want because it forwards everything to tomcat.

Any ideas?
thanks

---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux