Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. global
  2. daemon
  3. chroot /var/lib/haproxy
  4. pidfile /var/run/haproxy.pid
  5. stats socket /var/lib/haproxy/stats level admin
  6. maxconn 4096
  7. tune.ssl.default-dh-param 2048
  8.  
  9.  
  10. defaults
  11. log global
  12. option dontlognull
  13. option redispatch
  14. retries 3
  15. timeout http-request 5s
  16. timeout queue 1m
  17. timeout connect 5s
  18. timeout client 5s
  19. timeout server 10s
  20. timeout http-keep-alive 10s
  21. timeout check 10s
  22. maxconn 2000
  23.  
  24. listen stats
  25. bind 127.0.0.1:9090
  26. balance
  27. mode http
  28. stats enable
  29. stats auth vagrant:vagrant
  30.  
  31. frontend web
  32. bind *:80
  33. mode http
  34. use_backend web
  35.  
  36. backend web
  37. balance roundrobin
  38. mode http
  39. option forwardfor
  40. http-request set-header X-Forwarded-Port %[dst_port]
  41. http-request set-header X-Forwarded-Port https if { ssl_fc }
  42. server web01 192.168.33.10:80
  43. server web02 192.168.33.11:80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement