Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

Re: [users@httpd] Using RewriteMap value in ProxyPass

nitesh naik

2008-07-16

Replies: Find Java Web Hosting

Author LoginPost Reply
Eric,

Thanks for all your help. Setup is working as per requirement.

New Config

RewriteMap lb prg:/home/loadbalancer/program.pl
RewriteLock /home/loadbalancer/apache2/logs/rewrite.lock
RewriteRule ^/balancer-manager  /balancer-manager [L]
RewriteRule ^/(.*) balancer://mycluster${lb:$1}/ [P]

<Proxy balancer://mycluster1>
  BalancerMember http://192.168.10.6:8001/
  ProxySet lbmethod=byrequests
</Proxy>
<Proxy balancer://mycluster2>
  BalancerMember http://192.168.10.6:8002/
  ProxySet lbmethod=byrequests
</Proxy>
<Proxy balancer://mycluster3>
  BalancerMember http://192.168.10.6:8003/
  BalancerMember http://192.168.10.6:8004/
  ProxySet lbmethod=byrequests
</Proxy>

Regards
Nitesh

On Tue, Jul 15, 2008 at 8:08 PM, Eric Covener <covener@(protected):
> On Tue, Jul 15, 2008 at 10:09 AM, nitesh naik <niteshnaik@(protected):
>> Hi,
>>
>> I didn't understand RewriteRule with Proxy flag option. You mean
>> before Passing value to ProxyPass I should use RewriteRule ?
>
> RewriteRule with proxy flag instead of ProxyPass
>
> --
> Eric Covener
> covener@(protected)
>
> ---------------------------------------------------------------------
> 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@(protected)
>  "  from the digest: users-digest-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>

---------------------------------------------------------------------
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@(protected)
 "  from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.