blob: 15a19b1b4eec04f8520739bea6911169abdf53d9 [file] [log] [blame]
Willy Tarreau73290cc2008-04-12 11:19:04 +02001# This is a test configuration.
2# It presents 4 instances using fixed and relative port assignments from
3# ports 8001 to 8004. TCP only is used, and the destination address is not
4# relevant (use netstat -an).
5
6global
7 maxconn 100
8
9defaults
10 mode tcp
Willy Tarreaud4359fd2021-04-02 10:49:34 +020011 timeout client 15000
12 timeout server 15000
13 timeout connect 15000
Willy Tarreau73290cc2008-04-12 11:19:04 +020014 balance roundrobin
15
16listen fixed
17 bind :8001
18 server s1 1.1.1.1:8001
19
20listen same
21 bind :8002
22 server s2 1.1.1.2
23
24listen plus1000
25 bind :8003
26 server s3 1.1.1.3:+1000
27
28listen minus1000
29 bind :8004
30 server s4 1.1.1.4:-1000
31