搭个最简单的热备

经常用apache做负载分发,感觉应该是支持热备方式部署的,在网上google了一下 “apache 热备” ,结果出来的都是配置集群的帖.....

 

这里贴一下:

 

ProxyPass /  balancer://hotcluster/
<Proxy balancer://hotcluster>

BalancerMember http://1.2.3.4:8009 loadfactor=1
BalancerMember http://1.2.3.5:8009 loadfactor=2
# The below is the hot standby
BalancerMember http://1.2.3.6:8009 status=+H
</Proxy>

 

在集群配置的基础上,后面加 status=+H  就可以了。

 

参考 : http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

你可能感兴趣的:(apache,html,Google)