blob: f5591dce79c5144210f87d5ad2722e2bc2c3d4c4 [file] [log] [blame]
Willy Tarreaud4359fd2021-04-02 10:49:34 +02001# This is a test configuration.
2# It is used to check the various connection modes
3
4global
5 maxconn 100
6
7defaults
8 mode http
9 timeout client 10000
10 timeout server 10000
11 timeout connect 10000
12 balance roundrobin
13
14listen httpclose
15 option httpclose
16 bind :8001
17 server srv 127.0.0.1:8080
18 http-request add-header X-request mode=httpclose
19 http-response add-header X-response mode=httpclose
20
21listen server-close
22 option http-server-close
23 bind :8002
24 server srv 127.0.0.1:8080
25 http-request add-header X-request mode=server-close
26 http-response add-header X-response mode=server-close
27
28listen httpclose_server-close
29 option httpclose
30 option http-server-close
31 bind :8003
32 server srv 127.0.0.1:8080
33 http-request add-header X-request mode=httpclose+server-close
34 http-response add-header X-response mode=httpclose+server-close
35
36listen forceclose
37 option forceclose
38 bind :8004
39 server srv 127.0.0.1:8080
40 http-request add-header X-request mode=forceclose
41 http-response add-header X-response mode=forceclose
42