1
# Test configuration. It listens on port 8000, forwards to
2
# local ports 8001/8002 as two distinct servers, and relies
3
# on a server running on local port 8080 to handle the request.
5
# Example of request that must be handled (taken from RFC2965 and mangled
7
# POST /acme/process HTTP/1.1
8
# Cookie: $Version="1";
9
# Customer="WILE_E_COYOTE"; $Path="/acme";
10
# SID= s2 ; $Path="/";
11
# Part_Number="Rocket_Launcher_0001"; $Path="/acme";
12
# Shipping="FedEx"; $Path="/acme"
19
stats socket /tmp/sock1 mode 777 level admin
24
option http-server-close
33
cookie SID insert indirect
34
server s1 127.0.0.1:8001 cookie s1
35
server s2 127.0.0.1:8002 cookie s2
36
capture cookie toto= len 10
40
server srv 127.0.0.1:8080
41
reqadd x-haproxy-used:\ s1
45
server srv 127.0.0.1:8080
46
reqadd x-haproxy-used:\ s2