mod_proxy_balancer无法正常工作

时间:2016-03-27 00:03:26

标签: apache jetty mod-proxy-balancer

这是我在httpd.conf中的mod_proxy_balancer配置看起来的样子,但是当我访问http://localhost/balance时 - 我收到HTTP 404错误问题访问// lbtest / Reason:not found

# Load balancer configuration
<IfModule mod_proxy_balancer.c>
        <Location "/balancer-manager">
          SetHandler balancer-manager
          Order deny,allow
          Deny from all
          # Allow from local subnet only
          Allow from all
       </Location>  

       <Proxy balancer://mybalancer>
          BalancerMember http://localhost:8080/ route=route1
          BalancerMember http://localhost:8180/ route=route2
          ProxySet lbmethod=bytraffic
       </Proxy>

       ProxyPass /balance balancer://mybalancer/lbtest/
       #ProxyPassReverse /balance balancer://mybalancer/lbtest/
 </IfModule>

同样在我的jetty.base/webapps/lbtest存在 - 如果我访问http://localhost:8080/lbtest

,我可以访问相同内容

0 个答案:

没有答案