+
+
+
+ {{markdown "# 404\n\nSorry! The page you requested wasn't found. "}}
+
+
+
+ diff --git a/Caddyfile b/Caddyfile index 84fffc5..d93ad5e 100644 --- a/Caddyfile +++ b/Caddyfile @@ -15,3 +15,16 @@ rewrite /docs/modules/* /docs/modules/index.html rewrite /docs/* /docs/index.html reverse_proxy /api/* localhost:4444 + +handle_errors { + @error { + expression {http.error.status_code} in [404, 500] + } + handle @error { + rewrite 404.html + root * src + encode gzip + templates + file_server + } +} diff --git a/src/404.html b/src/404.html new file mode 100644 index 0000000..177bbe6 --- /dev/null +++ b/src/404.html @@ -0,0 +1,24 @@ + + +
+