@marcel91200 / caddy Mirror · read-only
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 11, 01:00 UTC

master
caddyfiletest 49 lines 604 Bytes
Raw
1 :80
2
3 @test {
4 not {
5 header Abc "123"
6 header Bcd "123"
7 }
8 }
9 respond @test 403
10 ----------
11 {
12 "apps": {
13 "http": {
14 "servers": {
15 "srv0": {
16 "listen": [
17 ":80"
18 ],
19 "routes": [
20 {
21 "match": [
22 {
23 "not": [
24 {
25 "header": {
26 "Abc": [
27 "123"
28 ],
29 "Bcd": [
30 "123"
31 ]
32 }
33 }
34 ]
35 }
36 ],
37 "handle": [
38 {
39 "handler": "static_response",
40 "status_code": 403
41 }
42 ]
43 }
44 ]
45 }
46 }
47 }
48 }
49 }