Apache / Determine stickiness using JSESSIONID

I am trying to determine stickiness in Apache. Here is the definition in the .conf proxy:

<Proxy balancer://fs1>
    BalancerMember https://localhost:5006/doc route=node1
    BalancerMember https://localhost:5008/doc route=node2
    ProxySet stickysession=JSESSIONID|jsessionid
</Proxy>
ProxyPass /doc balancer://fs1

or

ProxyPass "/doc " "balancer://fs1" stickysession=JSESSIONID|jsessionid scolonpathdelim=On
<Proxy balancer://fs1>
    BalancerMember https://localhost:5006/doc route=node1
    BalancerMember https://localhost:5008/doc route=node2
</Proxy>

I am trying to use the url request parameter to achieve stickiness (because I understand that overriding cookies is not recommended). As written in the Apache documentation:

- URL. URL- . stickysession. - . URL-, , . mod_substitute mod_sed. , .

10 :

https://{{myserver}}/doc?jsessionid=node1

, node1 (5 ) node2 ( 5 ). stickysession, node1 node.

, https://{{myserver}}/doc?jsessionid=nodeX, nodeX ( cookie.., - URL).

, https://{{myserver}}/doc?jsessionid=node1 10 . 10 https://localhost:5006.

?

+4
1

. URL- '.' "node1" :

https://{{myserver}}/doc?jsessionid=.node1

:

, - , , . : server.1, t.2 .. mod_proxy_balancer , - . , s.1 "route = 1" http://hkrishnan.in/2013/10/14/debugging-apache-mod_proxy_balancer/

, !

+2

All Articles