blob: e3ccc832f7c63d311fe9601086cb39de49627525 [file] [log] [blame]
Willy Tarreau2ab88672017-07-05 18:23:03 +02001global
2 maxconn 490
3 stats socket /tmp/sock1 mode 666 level admin
4 stats timeout 10m
5 ssl-server-verify none
6 tune.ssl.default-dh-param 1024
7 log /dev/log local0 debug info
8
9defaults
10 mode http
11 log global
12 option httplog
13 option dontlognull
14 timeout connect 5s
15 timeout http-keep-alive 15s
16 timeout http-request 15s
17 timeout queue 30s
18 timeout tarpit 1m
19 timeout tunnel 300s
20 timeout client 30s
21 timeout server 60s
22
23listen 1
24 bind :8001
25
26 # passes checks and traffic (no hostname check)
27 # server ssl 127.0.0.1:8443 ssl verify required check inter 500 ca-file rsa2048.pem
28
29 # passes checks and traffic (localhost is what the server presents)
30 # server ssl 127.0.0.1:8443 ssl verify required check inter 500 ca-file rsa2048.pem verifyhost localhost
31
32 # fails checks and traffic (foo not matched on the server)
33 # server ssl 127.0.0.1:8443 ssl verify required check inter 500 ca-file rsa2048.pem verifyhost foo
34
35 # passes checks and traffic (verify none ignores the host)
36 # server ssl 127.0.0.1:8443 ssl verify none check inter 500 ca-file rsa2048.pem verifyhost foo
37
38 # passes checks and traffic (localhost is fine)
39 # server ssl 127.0.0.1:8443 ssl verify required check inter 500 ca-file rsa2048.pem sni str(localhost) verifyhost localhost
40
41 # passes checks and traffic (verifyhost overrides sni)
42 # server ssl 127.0.0.1:8443 ssl verify required check inter 500 ca-file rsa2048.pem sni str(foo) verifyhost localhost
43
44 # passes checks and traffic (localhost always valid)
45 # server ssl 127.0.0.1:8443 ssl verify required check inter 500 ca-file rsa2048.pem sni str(localhost)
46
47 # passes checks, and traffic without host or with "host: localhost" and fails other hosts.
48 server ssl 127.0.0.1:8443 ssl verify required check inter 500 ca-file rsa2048.pem sni req.hdr(host)
49
50 # just for tests
51 #server clear 127.0.0.1:8480
52
53listen 2
54 bind :8480
55 bind :8443 ssl crt rsa2048.pem
56 stats uri /
57