@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 51 lines 844 Bytes
Raw
1 example.com {
2 respond <<EOF
3 <html>
4 <head><title>Foo</title>
5 <body>Foo</body>
6 </html>
7 EOF 200
8 }
9
10 ----------
11 {
12 "apps": {
13 "http": {
14 "servers": {
15 "srv0": {
16 "listen": [
17 ":443"
18 ],
19 "routes": [
20 {
21 "match": [
22 {
23 "host": [
24 "example.com"
25 ]
26 }
27 ],
28 "handle": [
29 {
30 "handler": "subroute",
31 "routes": [
32 {
33 "handle": [
34 {
35 "body": "\u003chtml\u003e\n \u003chead\u003e\u003ctitle\u003eFoo\u003c/title\u003e\n \u003cbody\u003eFoo\u003c/body\u003e\n\u003c/html\u003e",
36 "handler": "static_response",
37 "status_code": 200
38 }
39 ]
40 }
41 ]
42 }
43 ],
44 "terminal": true
45 }
46 ]
47 }
48 }
49 }
50 }
51 }