Willy Tarreau | 2e74c3f | 2007-12-02 18:45:09 +0100 | [diff] [blame] | 1 | # This is a test configuration. |
| 2 | # It checks instances, servers and acl names. |
| 3 | |
| 4 | listen valid_listen1 |
| 5 | bind :8000 |
Willy Tarreau | d4359fd | 2021-04-02 10:49:34 +0200 | [diff] [blame] | 6 | timeout client 5000 |
| 7 | timeout connect 5000 |
| 8 | timeout server 5000 |
Willy Tarreau | 2e74c3f | 2007-12-02 18:45:09 +0100 | [diff] [blame] | 9 | balance roundrobin |
| 10 | server srv1 127.0.0.1:80 |
| 11 | |
| 12 | frontend www.valid-frontend.net:80 |
| 13 | bind :8001 |
Willy Tarreau | d4359fd | 2021-04-02 10:49:34 +0200 | [diff] [blame] | 14 | timeout client 5000 |
Willy Tarreau | 2e74c3f | 2007-12-02 18:45:09 +0100 | [diff] [blame] | 15 | acl host_www.valid-frontend.net:80 hdr(host) www.valid-frontend.net |
| 16 | |
| 17 | backend Valid_BK-1 |
Willy Tarreau | d4359fd | 2021-04-02 10:49:34 +0200 | [diff] [blame] | 18 | timeout connect 5000 |
| 19 | timeout server 5000 |
Willy Tarreau | 2e74c3f | 2007-12-02 18:45:09 +0100 | [diff] [blame] | 20 | balance roundrobin |
| 21 | server bk1_srv-1:80 127.0.0.1:80 |
| 22 | |
| 23 | frontend www.test-frontend.net:8002/invalid |
| 24 | bind :8002 |
Willy Tarreau | d4359fd | 2021-04-02 10:49:34 +0200 | [diff] [blame] | 25 | timeout client 5000 |
Willy Tarreau | 2e74c3f | 2007-12-02 18:45:09 +0100 | [diff] [blame] | 26 | |
| 27 | frontend ft1_acl |
| 28 | bind :8003 |
Willy Tarreau | d4359fd | 2021-04-02 10:49:34 +0200 | [diff] [blame] | 29 | timeout client 5000 |
Willy Tarreau | 2e74c3f | 2007-12-02 18:45:09 +0100 | [diff] [blame] | 30 | acl invalid!name url / |
| 31 | |
| 32 | backend bk2_srv |
Willy Tarreau | d4359fd | 2021-04-02 10:49:34 +0200 | [diff] [blame] | 33 | timeout connect 5000 |
| 34 | timeout server 5000 |
Willy Tarreau | 2e74c3f | 2007-12-02 18:45:09 +0100 | [diff] [blame] | 35 | balance roundrobin |
| 36 | server bk2/srv-1 127.0.0.1:80 |
| 37 | |