Add custom 404 error page and configure Caddy to handle errors
Build and Push MkDocs Site / build-and-push (push) Successful in 12s
Build and Push MkDocs Site / build-and-push (push) Successful in 12s
This commit is contained in:
1 parent
bd81a01645
commit
96d7843e0e
2 files changed
+9
No files matched your search
@@ -1,4 +1,8 @@
|
||||
:80 {
|
||||
root * /usr/share/caddy
|
||||
file_server
|
||||
handle_errors {
|
||||
rewrite * /{err.status_code}.html
|
||||
file_server
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
# 404 - Seite nicht gefunden
|
||||
|
||||
Hoppla! Die gesuchte Seite existiert leider nicht.
|
||||
|
||||
[Zurück zur Startseite](index.md)
|
||||
Reference in new issue
Block a user