From 0a4b8fd30e099a947f60e5cc4a3ba8dcd50db82c Mon Sep 17 00:00:00 2001 From: Midou36O Date: Sun, 24 Dec 2023 16:29:28 +0100 Subject: [PATCH] Fix my website --- privfrontends/templates/eu/misc.Caddyfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/privfrontends/templates/eu/misc.Caddyfile b/privfrontends/templates/eu/misc.Caddyfile index 0d56886..8bc1621 100644 --- a/privfrontends/templates/eu/misc.Caddyfile +++ b/privfrontends/templates/eu/misc.Caddyfile @@ -68,6 +68,7 @@ www.midou.dev midou.dev { # header_up Host {http.reverse_proxy.upstream.hostport} # } root * /var/www/midouwebsite +# Apparently sveltekit built apps needs to have strict path tries. +try_files {path} {path}/index.html {path}.html =404 file_server -import def }