apache网络负载均衡+nfs

2018-12-25  本文已影响2人  理子
  1. Apache2.4配置集群,做网络负载均衡(很靠谱
    https://blog.csdn.net/mimi00x/article/details/81350222

  2. 一些解释
    https://blog.csdn.net/chy2z/article/details/80080463

  3. httpd服务的配置及应用
    https://www.jianshu.com/p/687b915766b6

  4. Apache httpd.conf配置详解
    https://www.cnblogs.com/langren1992/p/5160912.html

  5. lvs+keepalived+nginx实现高性能负载均衡集群

  6. keepalived+LVS
    http://blog.51cto.com/11233559/2103652

  7. 我的理解:

//配置好110、111两台主机上的httpd服务
vim /etc/httpd/conf/httpd.conf
<VirtualHost *:80>
    ServerName localhost
    ServerAlias localhost
    ServerAdmin localhost
    DocumentRoot "D:\www\web2"
    <Directory  "D:\www\web2">
        Options FollowSymLinks 
        AllowOverride All
        //注意Apache2.4必须加,否则出现403错误
        Require all granted  
    </Directory>
</VirtualHost>
//在另一台httpd上创建并加入如下内容
vim /etc/httpd/conf.d/vhost.conf 

<VirtualHost *:80>
    ServerName www.example.com
    ServerAlias example.com
    ProxyRequests off
    proxyPass / balancer://myBlancer/ 
    proxyPass / balancer://myBlancer/ stickysession=sessionid nofailover=On
    <Proxy balancer://myBlancer/>
        BalancerMember http://192.168.233.110:80/ loadfactor=3
        BalancerMember http://192.168.233.111:80/ loadfactor=6
        ProxySet lbmethod=bytraffic
    </Proxy>
</VirtualHost>
上一篇下一篇

猜你喜欢

热点阅读