apache版本:2.2.17
proxy模块搭建集群时,如果映射地址是“/”,则ProxyPass配置指令需要注意末尾的“/”。
the trailing slash at the end of the ProxyPass directive IS CRUCIAL!
参考文章:http://googolflex.com/?p=492
<location /> ProxyPass balancer://mycluster/ stickysession=JSESSIONID|jsessionid nofailover=On ProxyPassReverse balancer://mycluster/ </location> <Proxy balancer://mycluster> BalancerMember http://172.16.7.233:5080 loadfactor=50 route=t1 BalancerMember http://172.16.7.233:6080 loadfactor=50 route=t2 </Proxy>
apache日志中的报错信息:
[Mon Jan 25 13:35:57 2016] [warn] proxy: No protocol handler was valid for the URL /login.jsp. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.