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

Reply via email to