Re: Setting proxy parameters via mod_rewrite

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

 



On Wed, 2009-08-26 at 08:33 -0400, Tim Funk wrote:
> Let's say I have the following rule:
> 
> ProxyPass /foo balancer://cluster5/foo stickysession=JSESSIONID
> 
> I want to use RewriteRule for my proxy directives. So I'd say this:
> 
> RewriteRule ^/(foo.*) balancer://cluster5/$1 [P]
> 
> But how do I set stickysession=JSESSIONID [as well as any other 
> parameters that ProxyPass allows] - or is this a feature request?
> 
> Is it just as easy as use E=
> RewriteRule ^/(foo.*) balancer://cluster5/$1 [E=stickysession:JSESSIONID]
> 
> 
> 
> -Tim
> 

Use ProxySet instead. I assume your session is sticky for the entire
cluster?

RewriteRule ^/(foo.*) balancer://cluster5/$1
ProxySet balancer://cluster5 stickysession=JSESSIONID

See http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyset

Cheers

Tom


---------------------------------------------------------------------
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