.pastebin

haproxy.conf

27.03.2016 10:47:14 | syntax: none | size: 890 B | unlisted
# Config for haproxy 1.4 global maxconn 4096 chroot /var/lib/haproxy user haproxy group haproxy daemon defaults mode http timeout contimeout 5000 timeout client 50000 timeout server 50000 option forwardfor # Add X-Forwarded-For # To preserve client persistent connections while # handling every incoming request individually option http-server-close frontend http-in bind :80 # Define host variables based on Host-header acl host_routa_80 hdr(host) -i routa.dea.fi acl host_routa_8082 hdr(host) -i sub.routa.dea.fi # Apply the variables on backend selection use_backend routa-80 if host_routa_80 use_backend routa-8082 if host_routa_8082 backend routa-80 server routa80 10.0.0.1:80 backend routa-8082 server routa8082 10.0.0.1:8082