diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..51d6e5e --- /dev/null +++ b/Caddyfile @@ -0,0 +1,18 @@ +{ + auto_https off +} + +:8080 { + root * ./result/public + encode gzip + file_server + + # redirect to your custom 404 page + handle_errors { + @404 { + expression {http.error.status_code} == 404 + } + rewrite @404 /404.html + file_server + } +}