You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Serge Knystautas <se...@prestosports.com> on 2007/07/03 08:17:11 UTC
[users@httpd] stickysession without ProxyPass
I'm using mod_proxy_balancer with httpd 2.2.4. I have 2 clusters
defined and use rewrite rules with the [P] flag to route to one of the
two, e.g.,
RewriteCond %{HTTP_HOST} ^www2.prestosports.com [NC]
RewriteRule ^/(.*) balancer://main/$1 [P]
I'd now like to be able to set the "stickysession" parameter to use the
cookie I'll be setting in the next release of our app tier. However,
AFAICT the only place I could set this is with the ProxyPass directive.
Is there any way I can set stickysession while using mod_rewrite rules?
--
Serge Knystautas
PrestoSports >> Bringing Sports Information Online >>
http://www.prestosports.com
p. 301-789-1807
e. serge@prestosports.com
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: stickysession without ProxyPass
Posted by Serge Knystautas <se...@prestosports.com>.
Serge Knystautas wrote:
> I'm using mod_proxy_balancer with httpd 2.2.4. I have 2 clusters
> defined and use rewrite rules with the [P] flag to route to one of the
> two, e.g.,
>
> RewriteCond %{HTTP_HOST} ^www2.prestosports.com [NC]
> RewriteRule ^/(.*) balancer://main/$1 [P]
>
> I'd now like to be able to set the "stickysession" parameter to use the
> cookie I'll be setting in the next release of our app tier. However,
> AFAICT the only place I could set this is with the ProxyPass directive.
> Is there any way I can set stickysession while using mod_rewrite rules?
Answering my own question...
<Proxy balancer://main >
BalancerMember http://member1
BalancerMember http://member2
# See below
ProxySet stickysession=lbm
</Proxy>
Damn I love having access to source code!
--
Serge Knystautas
PrestoSports >> Bringing Sports Information Online >>
http://www.prestosports.com
p. 301-789-1807
e. serge@prestosports.com
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org