Posted on 2006-01-09 11:10
Kylin Bell 阅读(1511)
评论(1) 编辑 收藏 引用
在httpd 2.2.0后增加了proxy-ajp专供Tomcat使用。
官方文档在:http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html
The AJP proxy is a new module based on the standard Http proxy it uses AJP instead of HTTP.
<Location /examples/>
ProxyPass ajp://localhost:8009/examples/
</Location>
而且可以很轻易的进行负载均衡:
AJP proxy and proxy balancer
It is possible to use the load balancer of the mod_proxy_balancer module.
<Proxy balancer://myCluster>
BalancerMember ajp://localhost:8009
BalancerMember ajp://example.org:8009
</Proxy>
<Location /examples/>
ProxyPass balancer://myCluster/examples/
</Location>
还没来得及仔细研究,先记下来。:)