Created
February 6, 2009 10:57
-
-
Save peterc/59341 to your computer and use it in GitHub Desktop.
This file contains 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
global | |
maxconn 1024 | |
chroot /var/lib/haproxy | |
user haproxy | |
group haproxy | |
daemon | |
#debug | |
quiet | |
defaults | |
#log global | |
mode http | |
#option httplog | |
#option dontlognull | |
option forwardfor | |
option httpclose | |
retries 2 | |
redispatch | |
maxconn 1000 | |
mode http | |
balance roundrobin | |
contimeout 5000 | |
clitimeout 10000 | |
srvtimeout 10000 | |
frontend myfrontend *:80 | |
acl app hdr(host) -i app.vm | |
acl app hdr(host) -i app.feed.informer.com | |
acl app hdr(host) -i app.feeddigest.com | |
acl media hdr(host) -i media.vm | |
acl media hdr(host) -i media.feed.informer.com | |
acl media hdr(host) -i media.feeddigest.com | |
use_backend app_farm if app | |
use_backend media_farm if media | |
backend app_farm | |
server server_local 127.0.0.1:34590 | |
backend media_farm | |
server server1 127.0.0.1:34580 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment