上兵伐谋

“上兵伐谋,其次伐交,其次伐兵,其下攻城”。
posts - 35, comments - 32, trackbacks - 0, articles - 3

httpd 2.2.0后增加的proxy-ajp

Posted on 2006-01-09 11:10 Kylin Bell 阅读(1500) 评论(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>

还没来得及仔细研究,先记下来。:)

Feedback

# re: httpd 2.2.0后增加的proxy-ajp  回复  更多评论   

2006-03-16 20:08 by kingsky
能不能再细一些?
只有注册用户登录后才能发表评论。