Skip to navigation
Route a subdomain with haproxy
17.08.17
to use host specific haproxy routing you can use the acl access control lists (acl) and hdr (short for header) checks the hostname header features of haproxy example after global: frontend http-in bind *:80 acl host_foo hdr(host) -i bar.foo.com use_backend foo_cluster if host_foo backend foo_cluster balance leastconn option httpclose option forwardfor server node1 8.8.8.8:5000 check server node1 8.8.8.8:5001 check server node1 8.8.8.8:5002 check
https://seanmcgary.com/posts/haproxy---route-by-domain-name
Reply
Anonymous
Information Epoch 1732664387
Make every program a filter.
Home
Notebook
Contact us