Re: [users@httpd] Reverse Proxy -- excluding files

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

 



On 8/9/06, Bill Moseley <moseley@xxxxxxxx> 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@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