httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nik600 <>
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


        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

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.


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!


View raw message