global log 127.0.0.1 local0 log 127.0.0.1 local1 notice maxconn 4096 user haproxy group haproxy daemon defaults log global mode http option httplog option dontlognull retries 3 option redispatch maxconn 2000 contimeout 5000 clitimeout 50000 srvtimeout 50000 frontend http-in bind *:80 acl is_www_site1_com hdr_end(host) -i site1.com acl is_www_site2_com hdr_end(host) -i site2.com use_backend www_site1_com if is_www_site1_com use_backend www_site2_com if is_www_site2_com default_backend www_site1_com backend www_site1_com balance roundrobin cookie SERVERID insert nocache indirect option httpchk HEAD /check.txt HTTP/1.0 option httpclose option forwardfor server Server1 127.0.0.1:2222 cookie Server1 backend www_site2_com balance roundrobin cookie SERVERID insert nocache indirect option httpchk HEAD /check.txt HTTP/1.0 option httpclose option forwardfor server Server1 127.0.0.1:3333 cookie Server1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)