Skip to content

Instantly share code, notes, and snippets.

@m4ce
Last active April 7, 2016 09:42
Show Gist options
  • Save m4ce/1fbd0b36310fb9625fea40e3b3141b7e to your computer and use it in GitHub Desktop.
Save m4ce/1fbd0b36310fb9625fea40e3b3141b7e to your computer and use it in GitHub Desktop.
HAProxy name based routing
frontend example
bind 0.0.0.0:80
bind 0.0.0.0:443 ssl crt <pem>
mode http
option httplog
acl is_test hdr(host) -i test.example.org
use_backend test if is_test
default_backend welcome
backend test
..
backend welcome
..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment