Advertisement
Guest User

Untitled

a guest
May 7th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. global
  2. log /dev/log local0
  3. log /dev/log local1 notice
  4. chroot /var/lib/haproxy
  5. stats timeout 30s
  6. user haproxy
  7. group haproxy
  8. daemon
  9.  
  10. defaults
  11. log global
  12. mode tcp
  13. option httplog
  14. option dontlognull
  15. timeout connect 5000
  16. timeout client 50000
  17. timeout server 50000
  18.  
  19.  
  20.  
  21. listen stats
  22. bind :9000
  23. mode http
  24. stats enable
  25. stats realm Haproxy\ Statistics
  26. stats uri /haproxy_stats
  27. stats auth admin:admin
  28.  
  29.  
  30. frontend http-frontend
  31. bind *:80
  32. mode http
  33. redirect scheme https code 302 if !{ ssl_fc }
  34.  
  35.  
  36. frontend https
  37. bind *:443
  38. mode tcp
  39. option tcplog
  40. default_backend app
  41.  
  42.  
  43. backend app
  44. mode tcp
  45. option tcplog
  46. balance roundrobin
  47. server web1 ip:443 check
  48. server web2 ip:443 check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement