blob: 0c66b1639e00f601202727f7ae620ad83a24644d [file] [log] [blame]
Willy Tarreaud4359fd2021-04-02 10:49:34 +02001global
2 maxconn 100
3
4defaults
5 mode http
6 timeout client 10000
7 timeout server 10000
8 timeout connect 10000
9
10# Expect HTTP/1.1 418 I'm a teapot
11listen http-response-set-status-defaultreason
12 bind :8001
13 server host 127.0.0.1:8080
14 http-response set-status 418
15
16# Expect HTTP/1.1 418 I'm a coffeepot
17listen http-response-set-status-customreason
18 bind :8002
19 server host 127.0.0.1:8080
20 http-response set-status 418 reason "I'm a coffeepot"
21
22# Expect config parse fail
23#listen parse-fail-string
24# bind :8002
25# server host 127.0.0.1:8080
26# http-response set-status 418 reason
27
28# Expect config parse fail
29#listen parse-fail-keyword
30# bind :8002
31# server host 127.0.0.1:8080
32# http-response set-status 418 "Missing reason keyword"