You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John Patterson <de...@hotmail.com> on 2005/01/25 23:02:28 UTC
[users@httpd] Exclude images from match
Hi,
I would like to send all requests execpt images to a Jetty srever using mod_jk2.
How can I write a <Location> or <LocationMatch> section that exludes image files
(eg. .jpg, .gif)
Thanks,
John Patterson.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Exclude images from match
Posted by Joshua Slive <js...@gmail.com>.
+0000 (UTC), John Patterson <de...@hotmail.com> wrote:
> Hi,
>
> I would like to send all requests execpt images to a Jetty srever using mod_jk2.
>
> How can I write a <Location> or <LocationMatch> section that exludes image files
> (eg. .jpg, .gif)
I'm not really a regex expert, but in apache2 you can try negative
look-head to get this.
Something like
<LocationMatch /(?!.*\.(jpg|gif))>
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org