summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/sort_directives_with_any_matcher_first.txt16
1 files changed, 6 insertions, 10 deletions
diff --git a/caddytest/integration/caddyfile_adapt/sort_directives_with_any_matcher_first.txt b/caddytest/integration/caddyfile_adapt/sort_directives_with_any_matcher_first.txt
index d15f56b..6203a89 100644
--- a/caddytest/integration/caddyfile_adapt/sort_directives_with_any_matcher_first.txt
+++ b/caddytest/integration/caddyfile_adapt/sort_directives_with_any_matcher_first.txt
@@ -1,9 +1,9 @@
:80
-file_server
+respond 200
@untrusted not remote_ip 10.1.1.0/24
-file_server @untrusted
+respond @untrusted 401
----------
{
"apps": {
@@ -30,20 +30,16 @@ file_server @untrusted
],
"handle": [
{
- "handler": "file_server",
- "hide": [
- "Caddyfile"
- ]
+ "handler": "static_response",
+ "status_code": 401
}
]
},
{
"handle": [
{
- "handler": "file_server",
- "hide": [
- "Caddyfile"
- ]
+ "handler": "static_response",
+ "status_code": 200
}
]
}