sticky session with apache web server and tomcat servers

前端 未结 6 671
我在风中等你
我在风中等你 2021-02-01 21:33

I am using apache web server as a load balancer for two tomcat instances behind apache. When the first request goes to node A and second request from the same client goes to no

6条回答
  •  天命终不由人
    2021-02-01 22:09

    Pls try this, I'm sure this will work for you.

    Step-1: Add below code in httpd.conf:

    
    BalancerMember http:////  route=jvm1 
    BalancerMember http:////  route=jvm2
    ProxySet lbmethod=bytraffic
    ProxySet stickysession=JSESSIONID
    
    
    ProxyPass // balancer://mycluster/ 
    ProxyPassReverse // balancer://mycluster/
    

    Step-2: Add below code in server.conf:

    a) 
        
    b) 
    
    

提交回复
热议问题