blob: efafa4fa7541da986b0c4f8ecfa8f05e76c991eb [file] [log] [blame]
Willy Tarreaub463dfb2008-06-07 23:08:56 +02001# This is a test configuration.
2# It is used to check the redirect keyword.
3
4global
5 maxconn 400
6 stats timeout 3s
7
8listen sample1
9 mode http
10 retries 1
11 option redispatch
12 timeout client 1m
13 timeout connect 5s
14 timeout server 1m
15 maxconn 400
16 bind :8000
17
18 acl url_test1 url_reg test1
19 acl url_test2 url_reg test2
20 redirect location /abs/test code 301 if url_test1
21 redirect prefix /pfx/test code 302 if url_test2
22 redirect prefix /pfx/test code 303 if url_test2
23
24 ### unconditional redirection
25 #redirect location https://example.com/ if TRUE
26
27 ### parser must detect invalid syntaxes below
28 #redirect
29 #redirect blah
30 #redirect location
31 #redirect location /abs/test
32 #redirect location /abs/test code
33 #redirect location /abs/test code 300
34 #redirect location /abs/test code 301
35 #redirect location /abs/test code 304
36
37 balance roundrobin
38 server act1 127.0.0.1:80 weight 10
39 option httpclose
40 stats uri /stats
41 stats refresh 5000ms