diff --git a/static/Caddyfile b/static/Caddyfile index 87b0032..d144456 100644 --- a/static/Caddyfile +++ b/static/Caddyfile @@ -10,4 +10,12 @@ http://static-mat-services.fly.dev/ { :8080 { root * /var/www file_server + + handle_errors { + @404 { + expression {http.error.status_code} == 404 + } + rewrite @404 /404.html + file_server + } } \ No newline at end of file