39 lines
700 B
INI
39 lines
700 B
INI
global
|
|
log /dev/log local0
|
|
log /dev/log local1 notice
|
|
maxconn 4096
|
|
|
|
defaults
|
|
log global
|
|
mode http
|
|
option httplog
|
|
option dontlognull
|
|
timeout connect 5000
|
|
timeout client 50000
|
|
timeout server 50000
|
|
|
|
listen stats
|
|
bind 0.0.0.0:70
|
|
mode http
|
|
stats enable
|
|
stats hide-version
|
|
stats scope .
|
|
stats realm Haproxy\ Statistics
|
|
stats uri /
|
|
stats auth user:pass
|
|
|
|
frontend balancer
|
|
bind 0.0.0.0:80
|
|
mode http
|
|
default_backend web_backends
|
|
|
|
backend web_backends
|
|
mode http
|
|
balance roundrobin
|
|
option forwardfor
|
|
#option httpchk GET /
|
|
option httpchk HEAD /healthcheck.html HTTP/1.1
|
|
server weba weba:80 check
|
|
server webb webb:80 check
|
|
server webc webc:80 check
|