Skip to content

Instantly share code, notes, and snippets.

@ezhuk
Created December 26, 2013 20:39
Show Gist options
  • Save ezhuk/8138439 to your computer and use it in GitHub Desktop.
Save ezhuk/8138439 to your computer and use it in GitHub Desktop.
Multiple domains routing in HAProxy.
frontend main *:80
acl is_foo hdr_dom(host) -i foo
acl is_bar hdr_dom(host) -i bar
use_backend app_foo if is_foo
use_backend app_bar if is_bar
backend app_foo
# app_foo settings go here
backend app_bar
# app_bar setting go here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment