Re: [EMAIL PROTECTED] Using RewriteMap value in ProxyPass

2008-07-15 Thread nitesh naik
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]

Re: [EMAIL PROTECTED] Using RewriteMap value in ProxyPass

2008-07-15 Thread Eric Covener
On Tue, Jul 15, 2008 at 10:09 AM, nitesh naik <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] -

Re: [EMAIL PROTECTED] Using RewriteMap value in ProxyPass

2008-07-15 Thread nitesh naik
Hi, I didn't understand RewriteRule with Proxy flag option. You mean before Passing value to ProxyPass I should use RewriteRule ? Here is my httpd.conf. Not sure my previous mail had all lines in conf file. httpd.conf RewriteEngine on RewriteMap lb prg:/home/loadbalancer/program.pl ProxyPass /

Re: [EMAIL PROTECTED] Using RewriteMap value in ProxyPass

2008-07-15 Thread Eric Covener
On Tue, Jul 15, 2008 at 7:34 AM, nitesh naik <[EMAIL PROTECTED]> wrote: > Hi, > > Is it possible to use value returned from RewriteMap external program > in ProxyPass Directive ? We want use apache loadbalancing feature and > send request to different set of machines depending on the value > retur

[EMAIL PROTECTED] Using RewriteMap value in ProxyPass

2008-07-15 Thread nitesh naik
Hi, Is it possible to use value returned from RewriteMap external program in ProxyPass Directive ? We want use apache loadbalancing feature and send request to different set of machines depending on the value returned by RewriteMap. Basically RewriteMap program will return cluster value( 1, 2 or