@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 41 lines 519 Bytes
Raw
1 :80
2
3 handle {
4 respond <<END
5 line1
6 line2
7 END
8 }
9 ----------
10 {
11 "apps": {
12 "http": {
13 "servers": {
14 "srv0": {
15 "listen": [
16 ":80"
17 ],
18 "routes": [
19 {
20 "handle": [
21 {
22 "handler": "subroute",
23 "routes": [
24 {
25 "handle": [
26 {
27 "body": " line1\n line2",
28 "handler": "static_response"
29 }
30 ]
31 }
32 ]
33 }
34 ]
35 }
36 ]
37 }
38 }
39 }
40 }
41 }