Re: Excluding filetypes with <LocationMatch>

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

 



On 23/06/07, Ioannis Cherouvim <jc@xxxxxxxx> wrote:
<LocationMatch (?!(js|png|jpg|bmp|gif|ico|swf|xml|pdf|doc|xls|zip|txt)$)>
    JkUriSet worker ajp13:localhost:8009
</LocationMatch>

I tried this, but still, it seems that everything is being served by
tomcat. When I hit http://example.com/foo.txt and tomcat is down, I get
an error 500 (Internal Server Error).

That doesn't sound right, but then I get mod_jk doesn't consider
itself to operate like a proxy so doesn't use 503. I may have fluffed
the regex syntax too, I'm not sure if that $ anchor is in the right
place with respect to the assertion. Try (?!(\.(js|png|jpg|etc)$))
Ideally I guess you'd say "send this to tomcat unless it exists in the
document root", rather than listing arbitrary file extensions.

With mod_proxy_ajp I will be able to use the JkMount and JkUnMount
directives?

No, you use apache's ProxyPass family of directives, but instead of
proxying to http:// addresses you proxy to ajp://
Sadly the docs are a little spartan, so try the second link first.

http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html
http://people.apache.org/~mturk/docs/article/ftwai.html

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