Created
February 19, 2015 18:09
-
-
Save Atalanta/ad138bc50ef17ce5af00 to your computer and use it in GitHub Desktop.
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
table <vhost1> { 10.20.30.40 10.20.30.50 } | |
table <vhost2> { 10.20.30.60 10.20.30.70 } | |
http protocol "vhosts" { | |
match request quick header "Host" value "vhost1.test.com" forward to <vhost1> | |
match request quick header "Host" value "vhost2.test.com" forward to <vhost2> | |
} | |
relay "vhosts" { | |
listen on 192.168.128.18 port 80 | |
protocol "vhosts" | |
forward to <vhost1> | |
forward to <vhost2> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment