blob: a35dcb3d5fd55ec4a02fa2c7544b5a5cd7dd7852 [file] [log] [blame]
Willy Tarreaueb7b0a22010-08-31 16:45:02 +02001# 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.
4
5global
6 maxconn 500
7 stats socket /tmp/sock1 mode 777 level admin
8 stats timeout 1d
9
10defaults
11 mode http
12 option http-server-close
13 timeout client 30s
14 timeout server 30s
15 timeout connect 5s
16
17listen test
18 log 127.0.0.1 local0
19 option httplog
20 bind :8000
21 cookie SID
22 server s1 127.0.0.1:8001 cookie s1
23 server s2 127.0.0.1:8002 cookie s2
24 capture cookie toto= len 10
25
26listen s1
27 bind 127.0.0.1:8001
28 server srv 127.0.0.1:8080
Willy Tarreaud4359fd2021-04-02 10:49:34 +020029 http-request add-header x-haproxy-used s1
Willy Tarreaueb7b0a22010-08-31 16:45:02 +020030
31listen s2
32 bind 127.0.0.1:8002
33 server srv 127.0.0.1:8080
Willy Tarreaud4359fd2021-04-02 10:49:34 +020034 http-request add-header x-haproxy-used s2
Willy Tarreaueb7b0a22010-08-31 16:45:02 +020035