Add custom 404 error page and configure Caddy to handle errors
Build and Push MkDocs Site / build-and-push (push) Successful in 12s

This commit is contained in:
rewa81 committed 2026-01-04 16:02:32 +01:00
1 parent bd81a01645
commit 96d7843e0e
2 files changed
+9

No files matched your search

+4
View File
@@ -1,4 +1,8 @@
:80 {
root * /usr/share/caddy
file_server
handle_errors {
rewrite * /{err.status_code}.html
file_server
}
}
+5
View File
@@ -0,0 +1,5 @@
# 404 - Seite nicht gefunden
Hoppla! Die gesuchte Seite existiert leider nicht.
[Zurück zur Startseite](index.md)