您好,我是Apache服务器上的新手,我尝试在本地计算机上进行负载平衡,并在不同文件夹load1,load2上有多个页面,我尝试根据文档进行配置,但是我看不到这里的效果是我的配置< / p>
<VirtualHost *:1000>
ProxyRequests Off
ProxyTimeout 300
ProxyPreserveHost On
ProxyVia On
ErrorLog "logs/yoni-error.log"
CustomLog "logs/yoni-access.log" common
<Proxy balancer://mycluster>
BalancerMember http://yoni.com:1000
BalancerMember http://yoni1.com:1000
ProxySet lbmethod=byrequests
</Proxy>
ProxyPass /load balancer://mycluster/
ProxyPassReverse /load balancer://mycluster/
<Location /balancer-manager>
SetHandler balancer-manager
</Location>
</VirtualHost>