httpd反向代理tomcat时无法实现session会话的而保持

httpd配置如下

 Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED
        <proxy balancer://tomcat>            
                BalancerMember http://192.168.131.130:8080 loadfactor=1 route=server1
                BalancerMember http://192.168.131.138:8080 loadfactor=1 route=server2
        </proxy>
        ProxyVia On
        ProxyRequests Off
        ProxyPreserveHost On
        <Proxy *>
                Require all granted
        </Proxy>
        ProxyPass / balancer://tomcat/ stickysession=ROUTEID
        ProxyPassReverse / balancer://tomcat/ stickysession=ROUTEID

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐