ini haproxy.cfg
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini haproxy.cfg相关的知识,希望对你有一定的参考价值。
defaults
mode http
log global
option httplog
option dontlognull
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 20
timeout queue 86400
timeout connect 86400
timeout client 86400
timeout server 86400
timeout http-keep-alive 30
timeout check 20
maxconn 50000
frontend LB
bind 192.168.0.125:80
reqadd X-Forwarded-Proto:\ http
default_backend LB
backend LB 192.168.0.125:80
mode http
stats enable
stats hide-version
stats uri /stats
stats realm Haproxy\ Statistics
stats auth haproxy:redhat # Credentials for HAProxy Statistic report page.
balance roundrobin # Load balancing will work in round-robin process.
option httpchk
option httpclose
option forwardfor
cookie LB insert
server web1-srv 192.168.0.121:80 cookie web1-srv check # backend server.
server web2-srv 192.168.0.122:80 cookie web2-srv check # backend server.
server web3-srv 192.168.0.123:80 cookie web3-srv check # backend server.
server web4-srv 192.168.0.124:80 check backup # backup fail-over Server, If three of the above fails this will be activated.
以上是关于ini haproxy.cfg的主要内容,如果未能解决你的问题,请参考以下文章
ini haproxy.cfg
ini haproxy.cfg
ini 自定义Rancher负载均衡器haproxy.cfg
ini 自定义Rancher负载均衡器haproxy.cfg
ini haproxy.cfg节将启用Perfect Forward Secrecy和HTTP严格传输安全性。需要OpenSSL 1.0.1g左右。
Haproxy配置文件(haproxy.cfg)