peterc (owner)

Revisions

gist: 59341 Download_button fork
public
Public Clone URL: git://gist.github.com/59341.git
Embed All Files: show embed
haproxy.cfg #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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