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
- stats timeout 30s
- user haproxy
- group haproxy
- daemon
- defaults
- log global
- mode tcp
- option httplog
- option dontlognull
- timeout connect 5000
- timeout client 50000
- timeout server 50000
- listen stats
- bind :9000
- mode http
- stats enable
- stats realm Haproxy\ Statistics
- stats uri /haproxy_stats
- stats auth admin:admin
- frontend http-frontend
- bind *:80
- mode http
- redirect scheme https code 302 if !{ ssl_fc }
- frontend https
- bind *:443
- mode tcp
- option tcplog
- default_backend app
- backend app
- mode tcp
- option tcplog
- balance roundrobin
- server web1 ip:443 check
- server web2 ip:443 check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement