httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Bray" <nood...@gmail.com>
Subject Re: [users@httpd] Reverse Proxy -- excluding files
Date Wed, 09 Aug 2006 09:13:32 GMT
On 8/9/06, Bill Moseley <moseley@hank.org> wrote:
> I'm wonder how to *not* proxy some content.

mod_rewrite to the rescue!

> (Actually, I could probably *not* proxy any request that has an
> extension ([^/]\.\w+$) that doesn't end in .html?  I.e.:
>
>     /foo            - proxy
>     /foo/           - proxy
>     /foo/bar        - proxy
>     /foo/bar.html   - proxy
>     /foo/bar.123    - don't proxy

This is probably the easiest approach.

RewriteEngine On
RewriteCond %{REQUEST_URI} !(jpe?g|gif|png)$
RewriteRule (.+) http://localhost:10080$1 [P]
ProxyPassReverse / http://localhost:10080/

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


Mime
View raw message