Advertisement
Guest User

haproxy.cfg

a guest
Mar 16th, 2015
577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. global
  2. stats socket /tmp/haproxy.socket level admin
  3. uid 80
  4. gid 80
  5. nbproc 1
  6. chroot /tmp/haproxy_chroot
  7. daemon
  8.  
  9. listen HAProxyLocalStats
  10. bind 127.0.0.1:2200 name localstats
  11. mode http
  12. stats enable
  13. stats admin if TRUE
  14. stats uri /haproxy_stats.php?haproxystats=1
  15. timeout client 5000
  16. timeout connect 5000
  17. timeout server 5000
  18.  
  19. frontend CTWebFrontendCC
  20. bind x.x.x.x:80 name x.x.x.x:80
  21. mode http
  22. log global
  23. option http-keep-alive
  24. option forwardfor
  25. acl https ssl_fc
  26. reqadd X-Forwarded-Proto:\ http if !https
  27. reqadd X-Forwarded-Proto:\ https if https
  28. timeout client 30000
  29. default_backend CTWebPool_http_ipvANY
  30.  
  31. frontend CTWebFrontendATT
  32. bind y.y.y.y:80 name y.y.y.y:80
  33. mode http
  34. log global
  35. option http-keep-alive
  36. option forwardfor
  37. acl https ssl_fc
  38. reqadd X-Forwarded-Proto:\ http if !https
  39. reqadd X-Forwarded-Proto:\ https if https
  40. timeout client 30000
  41. default_backend CTWebPool_http_ipvANY
  42.  
  43. backend CTWebPool_http_ipvANY
  44. mode http
  45. option log-health-checks
  46. cookie SERVERID insert indirect nocache
  47. balance roundrobin
  48. timeout connect 30000
  49. timeout server 30000
  50. retries 3
  51. option httpchk OPTIONS /CheckCTWeb/CheckCTWeb
  52. server Server1 172.20.116.150:80 cookie Server1 check inter 1000 agent-check agent-inter 2000 agent-port 3333 weight 100
  53. server Server2 172.20.116.151:80 cookie Server2 check inter 1000 agent-check agent-inter 2000 agent-port 3333 weight 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement