Some haproxy config examples
Here are some config snippets from the haproxy setup I mentioned in the last post. Note that if this looks weird, it probably is - our environment is a bit of a mess, but due to constrained test resources, no cleanup is possible. Some organizational helpers I used: IP addresses 'make sense' - for example WEB02-IP2 is 192.168.1.62, -IP3 is .63, etc Keep the naming convention for backends consistent Keep things simple Comments only for the first frontend, first backend, unless actual specific notes required Keep spacing consistent, tabs, etc Frontend Example frontend domain1_com-http bind 192.168.0.50:80 # Subdomains: I put relevant subdomains here (just to keep track) acl is_GKWEB-http hdr(host) -i -f /etc/haproxy/GKWEB-http-urls # Subdomains: subdomain1 subdomain2 acl is_ITF01-http hdr(host) -i -f /etc/haproxy/ITF01-http-urls # Subdomains: subdomain1 subdomain2 acl is_WEB34-IP2-http hdr(host) -i -f /etc/haproxy/WEB34-IP2-http-urls # Subdomains: