summaryrefslogtreecommitdiff
path: root/caddy/Caddyfile
diff options
context:
space:
mode:
authorseth <[email protected]>2023-02-08 07:40:14 +0000
committerseth <[email protected]>2023-02-08 07:42:43 +0000
commit21fa4856be8de330d2351159b680c630e5f0aa07 (patch)
tree79ca7a9fb5da1579ef53e22e35edb2620cda1dd1 /caddy/Caddyfile
parent5e4b6ebb8c9e6adaf1ab12802beb82c59c88dcab (diff)
fix issues with paths
Diffstat (limited to 'caddy/Caddyfile')
-rw-r--r--caddy/Caddyfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/caddy/Caddyfile b/caddy/Caddyfile
index 1bb889f..4cee1a1 100644
--- a/caddy/Caddyfile
+++ b/caddy/Caddyfile
@@ -13,7 +13,14 @@
(common_domain) {
encode gzip
handle {
- try_files {path} {path}/ =404
+ try_files {path} {path}/
+ }
+ handle_errors {
+ @404 {
+ expression {http.error.status_code} == 404
+ }
+ rewrite @404 /404.html
+ file_server
}
}