$OpenBSD: patch-examples_haproxy_cfg,v 1.1.1.1 2008/07/17 04:31:45 jdixon Exp $
--- examples/haproxy.cfg.orig	Sat Jun 21 15:59:05 2008
+++ examples/haproxy.cfg	Sun Jul 13 20:13:01 2008
@@ -1,28 +1,30 @@
-# this config needs haproxy-1.1.28 or haproxy-1.2.1
 
 global
 	log 127.0.0.1	local0
 	log 127.0.0.1	local1 notice
 	#log loghost	local0 info
-	maxconn 4096
-	chroot /usr/share/haproxy
-	uid 99
-	gid 99
+	maxconn 1024
+	chroot ${HAPROXYSTATE}
+	uid ${HAPROXYUID}
+	gid ${HAPROXYGID}
 	daemon
 	#debug
 	#quiet
+	pidfile	/var/run/haproxy.pid
 
 defaults
 	log	global
 	mode	http
 	option	httplog
 	option	dontlognull
+	option	redispatch
 	retries	3
-	redispatch
 	maxconn	2000
 	contimeout	5000
 	clitimeout	50000
 	srvtimeout	50000
+	stats enable
+	stats auth admin:mekmitasdigoat
 
 listen	appli1-rewrite 0.0.0.0:10001
 	cookie	SERVERID rewrite
@@ -59,22 +61,4 @@ listen	ssl-relay 0.0.0.0:8443
 	server	inst1 192.168.110.56:443 check inter 2000 fall 3
 	server	inst2 192.168.110.57:443 check inter 2000 fall 3
 	server	back1 192.168.120.58:443 backup
-
-listen	appli5-backup 0.0.0.0:10005
-	option	httpchk *
-	balance	roundrobin
-	cookie	SERVERID insert indirect nocache
-	server	inst1 192.168.114.56:80 cookie server01 check inter 2000 fall 3
-	server	inst2 192.168.114.56:81 cookie server02 check inter 2000 fall 3
-	server	inst3 192.168.114.57:80 backup check inter 2000 fall 3
-	capture cookie ASPSESSION len 32
-	srvtimeout	20000
-
-	option	httpclose		# disable keep-alive
-	option  checkcache		# block response if set-cookie & cacheable
-
-	rspidel ^Set-cookie:\ IP=	# do not let this cookie tell our internal IP address
-	
-	errorloc	502	http://192.168.114.58/error502.html
-	errorfile	503	/etc/haproxy/errors/503.http
 
