usage of querystring parameter instead of stickysession to route requests through proxy balancer

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

 



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

[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