From 21fa4856be8de330d2351159b680c630e5f0aa07 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 8 Feb 2023 07:40:14 +0000 Subject: fix issues with paths --- caddy/Caddyfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'caddy/Caddyfile') 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 } } -- cgit v1.2.3