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 192.168.80.241:5000 check server node1 192.168.80.241:5001 check server node1 192.168.80.241:5002 check
https://seanmcgary.com/posts/haproxy---route-by-domain-name
Reply
Anonymous
Information Epoch 1714062045
Small is beautiful.
Home
Notebook
Contact us