Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global
- log 127.0.0.1 local0
- daemon
- maxconn 80000
- pidfile /var/run/haproxy.pid
- stats socket /var/run/haproxy.stat mode 600
- defaults
- mode http
- maxconn 79800 # Should be slightly smaller than global.maxconn.
- timeout client 5s # Client and server timeout must match the longest
- timeout server 5s # time we may wait for a response from the server.
- timeout queue 20s # Don't queue requests too long if saturated.
- timeout connect 2s # There's no reason to change this one.
- timeout http-request 10s # A complete request may never take that long.
- option httpclose
- option abortonclose
- balance roundrobin
- option forwardfor # set the client's IP in X-Forwarded-For.
- option redispatch
- retries 8
- frontend public
- bind :80
- default_backend varnish_back
- frontend varnish_front
- bind :82 # or any other IP:port combination we listen to.
- option httplog
- log global
- acl host_end hdr(host) -i end
- acl host_ph hdr(host) -i ph
- use_backend endweb if host_end
- use_backend phweb if host_ph
- default_backend endweb
- backend varnish_back
- option allbackups
- server varnish_local 127.0.0.1:81 maxconn 8000 check inter 4000
- server varnish_vip72 192.168.10.72:81 maxconn 2000 backup check inter 10000
- server varnish_vip73 192.168.10.73:81 maxconn 2000 backup check inter 10000
- backend endweb_test
- server endiwebdot14 192.168.10.14:80 maxconn 15 check inter 40000
- disabled
- backend endweb
- server 1-wolverine-10.21 192.168.10.21:80 maxconn 2 check inter 40000
- server 1-magneto-10.22 192.168.10.22:80 maxconn 2 check inter 40000
- server 1-phoenix-10.23 192.168.10.23:80 maxconn 2 check inter 40000
- server 1-gambit-10.24 192.168.10.24:80 maxconn 2 check inter 40000
- server 1-colossus-10.27 192.168.10.27:80 maxconn 2 check inter 40000
- server 1-cyclops-10.28 192.168.10.28:80 maxconn 2 check inter 40000
- backend phweb
- server 1-joker-10.25 192.168.10.25:80 maxconn 2 check inter 40000
- server 1-luthor-10.26 192.168.10.26:80 maxconn 2 check inter 40000
- # Enable the stats page on a dedicated port (8888). Monitoring request errors
- # on the frontend will tell us how many potential attacks were blocked.
- listen stats
- bind :8888
- stats uri /
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement