@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 78 lines 1.23 KB
Raw
1 :8881 {
2 route {
3 handle /foo/* {
4 respond "Foo"
5 }
6 handle {
7 respond "Bar"
8 }
9 }
10 }
11 ----------
12 {
13 "apps": {
14 "http": {
15 "servers": {
16 "srv0": {
17 "listen": [
18 ":8881"
19 ],
20 "routes": [
21 {
22 "handle": [
23 {
24 "handler": "subroute",
25 "routes": [
26 {
27 "group": "group2",
28 "handle": [
29 {
30 "handler": "subroute",
31 "routes": [
32 {
33 "handle": [
34 {
35 "body": "Foo",
36 "handler": "static_response"
37 }
38 ]
39 }
40 ]
41 }
42 ],
43 "match": [
44 {
45 "path": [
46 "/foo/*"
47 ]
48 }
49 ]
50 },
51 {
52 "group": "group2",
53 "handle": [
54 {
55 "handler": "subroute",
56 "routes": [
57 {
58 "handle": [
59 {
60 "body": "Bar",
61 "handler": "static_response"
62 }
63 ]
64 }
65 ]
66 }
67 ]
68 }
69 ]
70 }
71 ]
72 }
73 ]
74 }
75 }
76 }
77 }
78 }