You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "PONSIGNON, Christophe" <ch...@capgemini.com> on 2009/02/02 17:41:30 UTC

[users@httpd] mod_rewrite and ProxyRemote clause

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