apache2.2 tomcat5.5 virtualhost load balance

 

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

 

<Proxy balancer://proxy>
       BalancerMember ajp://127.0.0.1:8009/  loadfactor=1
</Proxy>

 

 <VirtualHost   *:80>
        ServerName www.a.com
        ServerAlias   www.a.com
        ProxyPass / balancer://proxy/
        ProxyPassReverse / balancer://proxy/

 </VirtualHost> 

你可能感兴趣的:(virtual)