blob: f46e531871c11f566fcbd63f83f6a8927cbdd503 [file] [log] [blame]
Willy Tarreau01732802007-11-01 22:48:15 +01001# This is a test configuration.
2# It tests the "balance" parser for several parameter combinations.
3
4
5global
6 maxconn 10000
7
8defaults
9 balance
10
11defaults
12 balance roundrobin
13
14defaults
15 balance source
16
17defaults
18 balance uri
19
20defaults
21 balance url_param foo
22
23defaults
24 mode tcp
25
26# must produce an error
27#defaults
28# balance url_param
29
30backend tcp-bk1
31 balance
32
33backend tcp-bk2
34 balance roundrobin
35
36backend tcp-bk3
37 balance source
38
39backend tcp-bk4
40 balance uri
41
42backend tcp-bk5
43 balance url_param foo
44
45defaults
46 mode http
47
48backend http-bk1
49 balance
50
51backend http-bk2
52 balance roundrobin
53
54backend http-bk3
55 balance source
56
57backend http-bk4
58 balance uri
59
60backend http-bk5
61 balance url_param foo
62
63# must produce an error
64#backend http-bk6
65# balance url_param