httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nik600 <nik...@gmail.com>
Subject [users@httpd] usage of querystring parameter instead of stickysession to route requests through proxy balancer
Date Wed, 21 May 2014 19:21:25 GMT
Dear all

i know that is possible to use a "route" parameter into the proxy balancer
definition and then set a stickysession cookie name into the ProxyPass
setting.

Example:

        ProxyPass / balancer://mycluster/ stickysession=MyCookie
        ProxyPassReverse / balancer://mycluster/

        <Proxy balancer://mycluster>
          BalancerMember http://x.y.z.t:80  route=node01
          BalancerMember http://x.y.z.u:80  route=node02
          ProxySet lbmethod=byrequests
        </Proxy>

If i set the cookie MyCookie=node01/02 i can route all requests to a
specific node, and that's ok.

But....due to some architecture and application limitation i'm not able to
operate with cookies, so i'm wondering if is possible to "detect" the route
parameter directly from a query string parameter.

Example:

http://foo/test.php (dst is decided by proxy balancer rules)
http://foo/test.php?MyRoute=node01 (dst is node01)
http://foo/test.php?MyRoute=node01 (dst is node02)

Thanks to all in advance, bye!

-- 
/*************/
nik600
http://www.kumbe.it

Mime
View raw message