Guest User

Untitled

a guest
Jun 25th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. global
  2. log 127.0.0.1 local0
  3. log 127.0.0.1 local1 notice
  4. maxconn 4096
  5. user haproxy
  6. group haproxy
  7. daemon
  8. node i-8983b8e3
  9. stats socket /var/run/haproxy.stat mode 600
  10.  
  11. defaults
  12. log global
  13. mode http
  14. option httplog
  15. option dontlognull
  16. retries 3
  17. option redispatch
  18. maxconn 2000
  19. contimeout 5000
  20. clitimeout 50000
  21. srvtimeout 50000
  22. option forwardfor
  23. errorfile 400 /etc/haproxy/errors/400.http
  24. errorfile 403 /etc/haproxy/errors/403.http
  25. errorfile 408 /etc/haproxy/errors/408.http
  26. errorfile 500 /etc/haproxy/errors/500.http
  27. errorfile 502 /etc/haproxy/errors/502.http
  28. errorfile 503 /etc/haproxy/errors/503.http
  29. errorfile 504 /etc/haproxy/errors/504.http
  30.  
  31. listen stats :8080
  32. mode http
  33. stats uri /
  34.  
  35. frontend https-in
  36. bind *:10000
  37. acl is_qa url_reg _qa
  38. use_backend build_446 if is_qa
  39. default_backend build_446
  40.  
  41. #Request Headers
  42. capture request header Content-Length len 10
  43. capture request header X-Forwarded-For len 150
  44. capture request header X-Forwarded-Host len 150
  45.  
  46. #Response Headers
  47. capture response header Content-Length len 10
  48. capture response header X-Forwarded-For len 150
  49. capture response header X-Forwarded-Host len 150
  50.  
  51. backend build_446 ### QA ###
  52. balance roundrobin
  53. option httpchk HEAD /SledgeHammer/images/chk.gif HTTP/1.0
  54. server i-0f626e65 ec2-75-101-189-211.compute-1.amazonaws.com:8080 check inter 2000 rise 2 fall 5
  55. server i-93969bf9 ec2-184-73-35-29.compute-1.amazonaws.com:8080 check inter 2000 rise 2 fall 5
  56.  
  57. backend build_85 ### PRODUCTION ###
  58. balance roundrobin
  59. option httpchk HEAD /SledgeHammer/images/chk.gif HTTP/1.0
Add Comment
Please, Sign In to add comment