Advertisement

[x]
Attachment Details

Apache Proxy RewriteRule

Is there a way to configure apache to act as a proxy server that forwards requests to another proxy server, but formats the URL's if needed (via a perl script) before it sends it to that other proxy?

I've tried a combination of, but haven't gotten it to work:

RewriteEngine On
RewriteMap lb prg:/etc/apache2/lb.pl
RewriteRule ^/(.*) ${lb:$1\&%{query_string}} [P,NC]
Proxypassreverse / ${lb:$1}

ProxyRequests On
ProxyRemote * http://main-proxy:80
Related Solutions
Related Solutions
 
Loading Advertisement...
 

Rank: Sage

Expert Comment by caterham_www:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Author Comment by msg1234:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 

Rank: Sage

Expert Comment by caterham_www:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Author Comment by msg1234:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 

Rank: Sage

Expert Comment by caterham_www:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
Loading Advertisement...
20080924-EE-VQP-40 / EE_QW_2_20070628