Advertisement
Guest User

Untitled

a guest
Feb 4th, 2023
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. global
  2. log /dev/log local0
  3. log /dev/log local1 notice
  4. chroot /var/lib/haproxy
  5. user haproxy
  6. group haproxy
  7. daemon
  8. stats socket /var/lib/haproxy/stats mode 666 level admin
  9.  
  10. defaults
  11. log global
  12. mode http
  13. option httplog
  14. option dontlognull
  15. timeout connect 10s
  16. timeout client 30s
  17. timeout server 30s
  18. errorfile 400 /etc/haproxy/errors/400.http
  19. errorfile 403 /etc/haproxy/errors/403.http
  20. errorfile 408 /etc/haproxy/errors/408.http
  21. errorfile 500 /etc/haproxy/errors/500.http
  22. errorfile 502 /etc/haproxy/errors/502.http
  23. errorfile 503 /etc/haproxy/errors/503.http
  24. errorfile 504 /etc/haproxy/errors/504.http
  25.  
  26. frontend stats
  27. bind *:8404
  28. stats enable
  29. stats uri /stats
  30. stats refresh 10s
  31.  
  32. frontend proxy-front
  33. bind *:8118
  34. mode http
  35. default_backend proxy-back
  36.  
  37. backend proxy-back
  38. mode http
  39. balance roundrobin
  40. option forwardfor
  41. option httpchk
  42. http-check expect status 400
  43. cookie SERVERID insert indirect
  44. server proxy01 192.168.20.62:8008 cookie proxy01 check
  45. server proxy02 192.168.25.72:8008 cookie proxy02 check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement