Apache HTTPD ProxyRemote和Balancer? [英] Apache HTTPD ProxyRemote and Balancer?

查看:53
本文介绍了Apache HTTPD ProxyRemote和Balancer?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

browser (IE) -> apache httpd proxy -> Proxy 1  -> target url
                                      Proxy 2  -> target url
                                      Proxy n  -> target url

所以基本上我想制作自己的apache httpd代理,它在选择httpd conf中选择外部代理设置之间的loadbalancer.

So basically I want to make my own apache httpd proxy that works as a loadbalancer between choosing external proxy setup'ed in httpd conf.

当前设置:

 ProxyPreserveHost On
 ProxyRequests On
 ProxyVia On
 ProxyRemote * http://proxy_ip:80

此版本运行良好,但我不知道如何向ProxyRemote添加多个代理?...设置为时似乎不起作用:ProxyRemote * balancer://mycluster

This version works nicely but I can't figure out how to add several proxy's to ProxyRemote? ... seems not working when setuping as: ProxyRemote * balancer://mycluster

有什么想法吗?可以使用apache来实现,还是应该使用其他负载均衡器?

Any ideas? Can it be achieved with apache or some other load balancer should be used?

推荐答案

如果您在映射到平衡器的代理服务器上设置了另一个虚拟主机,然后通过

Maybe it could work if you set up another vhost on the proxy server mapping to the balancer, then proxy to that vhost via

ProxyRemote * http://balancer-proxy.vhost.local

这篇关于Apache HTTPD ProxyRemote和Balancer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆