@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 45 lines 648 Bytes
Raw
1 # https://github.com/caddyserver/caddy/issues/3977
2 http://* {
3 respond "Hello, world!"
4 }
5 ----------
6 {
7 "apps": {
8 "http": {
9 "servers": {
10 "srv0": {
11 "listen": [
12 ":80"
13 ],
14 "routes": [
15 {
16 "match": [
17 {
18 "host": [
19 "*"
20 ]
21 }
22 ],
23 "handle": [
24 {
25 "handler": "subroute",
26 "routes": [
27 {
28 "handle": [
29 {
30 "body": "Hello, world!",
31 "handler": "static_response"
32 }
33 ]
34 }
35 ]
36 }
37 ],
38 "terminal": true
39 }
40 ]
41 }
42 }
43 }
44 }
45 }