diff options
Diffstat (limited to 'caddytest/integration/caddyfile_adapt/http_only_on_any_address.txt')
-rw-r--r-- | caddytest/integration/caddyfile_adapt/http_only_on_any_address.txt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/http_only_on_any_address.txt b/caddytest/integration/caddyfile_adapt/http_only_on_any_address.txt new file mode 100644 index 0000000..8af2c33 --- /dev/null +++ b/caddytest/integration/caddyfile_adapt/http_only_on_any_address.txt @@ -0,0 +1,37 @@ +:80 { + respond /version 200 { + body "hello from localhost" + } +} +---------- +{ + "apps": { + "http": { + "servers": { + "srv0": { + "listen": [ + ":80" + ], + "routes": [ + { + "match": [ + { + "path": [ + "/version" + ] + } + ], + "handle": [ + { + "body": "hello from localhost", + "handler": "static_response", + "status_code": 200 + } + ] + } + ] + } + } + } + } +}
\ No newline at end of file |