我有loadbalancer服务器和边缘。 我正在尝试configuration反向代理以隐藏后端服务器PL1,2,3。 PL 1,2,3不在同一个子网内。 他们位于不同的地点。
PL1 Lb1 -> PL2 PL3
我试图configurationApache反向代理,但它没有发送请求到PL1,2,3。 反向代理只有当我configurationApache发送请求到本地服务器在其他端口上工作。
ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /PL1 http://PL1server.com/ ProxyPassReverse /PL1 http://PL1server.com/
上述configuration没有奏效。 你能帮我解决这个问题吗? 还是有其他代理types,如Squid,Socks5来解决这个问题。
如果我们在ProxyPass和ProxyPassReverse中使用IP地址或域URL,反向代理是否会失败?
如何使用代理平衡器?
ProxyPass / balancer://mycluster/ ProxyPassReverse / ballancer://mycluster/ <Proxy balancer://mycluster> BalancerMember http://PL1:80 BalancerMember http://PL2:80 BalancerMember http://PL3:80 </Proxy>