Created
December 26, 2013 20:39
-
-
Save ezhuk/8138439 to your computer and use it in GitHub Desktop.
Multiple domains routing in HAProxy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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