Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global
- log /dev/log local0
- log /dev/log local1 notice
- chroot /var/lib/haproxy
- user haproxy
- group haproxy
- daemon
- stats socket /var/lib/haproxy/stats mode 666 level admin
- defaults
- log global
- mode http
- option httplog
- option dontlognull
- timeout connect 10s
- timeout client 30s
- timeout server 30s
- errorfile 400 /etc/haproxy/errors/400.http
- errorfile 403 /etc/haproxy/errors/403.http
- errorfile 408 /etc/haproxy/errors/408.http
- errorfile 500 /etc/haproxy/errors/500.http
- errorfile 502 /etc/haproxy/errors/502.http
- errorfile 503 /etc/haproxy/errors/503.http
- errorfile 504 /etc/haproxy/errors/504.http
- frontend stats
- bind *:8404
- stats enable
- stats uri /stats
- stats refresh 10s
- frontend proxy-front
- bind *:8118
- mode http
- default_backend proxy-back
- backend proxy-back
- mode http
- balance roundrobin
- option forwardfor
- option httpchk
- http-check expect status 400
- cookie SERVERID insert indirect
- server proxy01 192.168.20.62:8008 cookie proxy01 check
- server proxy02 192.168.25.72:8008 cookie proxy02 check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement