diff options
author | Matt Holt <mholt@users.noreply.github.com> | 2020-11-02 14:20:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 14:20:12 -0700 |
commit | 8d038ca515ffaa4d37dca05a95181203b2db64e7 (patch) | |
tree | 09ec23687cebfe468f8079ad86facf4d40a7c31c /caddytest/integration | |
parent | 937ec342010894f7a6239883b10f6a107ff82c9f (diff) |
fileserver: Improve and clarify file hiding logic (#3844)
* fileserver: Improve and clarify file hiding logic
* Oops, forgot to run integration tests
* Make this one integration test OS-agnostic
* See if this appeases the Windows gods
* D'oh
Diffstat (limited to 'caddytest/integration')
-rw-r--r-- | caddytest/integration/caddyfile_adapt/sort_directives_with_any_matcher_first.txt | 16 |
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
}
]
}
|