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
| 1 | :9080 |
| 2 | uri replace "\}" %7D |
| 3 | uri replace "\{" %7B |
| 4 | |
| 5 | respond "{query}" |
| 6 | ---------- |
| 7 | { |
| 8 | "apps": { |
| 9 | "http": { |
| 10 | "servers": { |
| 11 | "srv0": { |
| 12 | "listen": [ |
| 13 | ":9080" |
| 14 | ], |
| 15 | "routes": [ |
| 16 | { |
| 17 | "handle": [ |
| 18 | { |
| 19 | "handler": "rewrite", |
| 20 | "uri_substring": [ |
| 21 | { |
| 22 | "find": "\\}", |
| 23 | "replace": "%7D" |
| 24 | } |
| 25 | ] |
| 26 | }, |
| 27 | { |
| 28 | "handler": "rewrite", |
| 29 | "uri_substring": [ |
| 30 | { |
| 31 | "find": "\\{", |
| 32 | "replace": "%7B" |
| 33 | } |
| 34 | ] |
| 35 | }, |
| 36 | { |
| 37 | "body": "{http.request.uri.query}", |
| 38 | "handler": "static_response" |
| 39 | } |
| 40 | ] |
| 41 | } |
| 42 | ] |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | } |