mod_rewrite and ProxyRemote clause

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

 



Hi all,

I’m triying to setup a reverse proxy situated in an intranet so that he can forward every external proxy request to the company’s proxy.

To implement this feature, I’m trying to combine the mod_rewrite module and the ProxyRemote clause this way:

RewriteEngine on

RewriteCond %{REQUEST_URI} ^/my_application /

RewriteRule /my_application /(.*)$ http://MY_SERVER:8080/my_application/$1 [R,P]

RewriteCond %{REQUEST_URI} ^/proxy/

RewriteRule /proxy/(.*)$ http://$1 [R,P]

ProxyRemote * http://PROXY_INTERNET

NoProxy MY_SERVER

 

If I use the ProxyRemote clause with some explicit URLs instead of the * wildcard, the forward is working fine.

 

ProxyRemote http://www.a_external_site.com http://PROXY_INTERNET



Thanks for your help

Christophe


[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