Formatting code for HAproxy


show source only

{{parent page="WebServer"}}

===HAProxy===
Quick start

==Download==
http://haproxy.1wt.eu/

==Config==
%%
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
chroot /usr/share/haproxy
user haproxy
group haproxy
daemon
#debug
#quiet
pidfile /var/run/haproxy.pid
defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000

listen ism-http 0.0.0.0:80
mode http
balance roundrobin
server local1 1.2.3.4:8080 check inter 2000
server local2 127.0.0.1:8080 check inter 2000
stats enable
stats uri /haproxy-stat
stats realm Haproxy\ Statistics
stats auth admin:xxxxxxx

%%
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki