Re: Using RewriteMap value in ProxyPass

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

 



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@xxxxxxxxx> wrote:
> On Tue, Jul 15, 2008 at 10:09 AM, nitesh naik <niteshnaik@xxxxxxxxx> wrote:
>> 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@xxxxxxxxx
>
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>

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


[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