Apache2.2和tomcat集成更加简单了 Tomcat
程序员文章站
2022-07-14 14:16:57
...
Apache2.2新增加了几个module,和tomcat集成更加的简单了:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
ProxyPass / balancer://myCluster/
<proxy balancer:="" mycluster=""/>
BalancerMember ajp://localhost:10009 route=tomcat1
BalancerMember ajp://localhost:20009 route=tomcat2
</proxy>