apache 负载均衡

  1. LoadModule proxy_module modules/mod_proxy.so  

  2. LoadModule proxy_balancer_module modules/mod_proxy_balancer.so  

  3. LoadModule proxy_http_module modules/mod_proxy_http.so  

  4. LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
  5. LoadModule mod_lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so                           



<IfModule mpm_winnt_module>
ThreadsPerChild 1000
MaxRequestsPerChild 0
</IfModule>

LimitRequestLine 40940
LimitRequestFieldSize 40940

ProxyRequests Off  
<Proxy balancer://mycluster>  
    BalancerMember http://www.baidu.com
    BalancerMember http://www.bjjem.com
</Proxy>  
ProxyPass / balancer://mycluster/


具体问题查看apache 的错误日志,然后网上找答案

你可能感兴趣的:(apache 负载均衡)