Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. [root@ghizialma ~]# vi /etc/haproxy/haproxy.cfg
  2. global
  3. maxconn 20000
  4. user haproxy
  5. group haproxy
  6. stats socket /tmp/haproxy
  7. node lb1
  8. nbproc 1
  9. daemon
  10.  
  11. defaults
  12. log global
  13. retries 3
  14. option dontlog-normal
  15. option splice-auto
  16. timeout connect 5000ms
  17. timeout client 5000ms
  18. timeout server 5000ms
  19. maxconn 20000
  20.  
  21. backend application_servers
  22. mode tcp
  23. balance roundrobin
  24. option httpchk HEAD / HTTP/1.1rnHost: ghizialma.com
  25.  
  26. option ssl-hello-chk
  27. server web02 192.99.199.139:80 check
  28. server web03 192.99.199.130:80 check
  29.  
  30. frontend ghizialma.com
  31. bind *:80
  32. bind *:443
  33. mode tcp
  34. default_backend application_servers
  35.  
  36. listen stats *:1936
  37. mode http
  38. stats enable
  39. stats uri /
  40. stats hide-version
  41. stats auth admin:admin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement