blob: 87b3f7f9fbe3524c9765d413e864ead848ffd1bf [file] [log] [blame]
# Test configuration. It listens on port 8000, forwards to
# local ports 8001/8002 as two distinct servers, and relies
# on a server running on local port 8080 to handle the request.
maxconn 500
stats socket /tmp/sock1 mode 777 level admin
stats timeout 1d
mode http
option http-server-close
timeout client 30s
timeout server 30s
timeout connect 5s
listen test
log local0
option httplog
bind :8000
cookie SID rewrite
server s1 cookie s1
server s2 cookie s2
capture cookie toto= len 10
listen s1
server srv
reqadd x-haproxy-used:\ s1
listen s2
server srv
reqadd x-haproxy-used:\ s2