From fff5e468db1773f83c51293f46f9ab5cf5d43f68 Mon Sep 17 00:00:00 2001 From: Florian Zirker Date: Wed, 19 Mar 2025 08:41:58 +0100 Subject: [PATCH] error.html --- proxy/Caddyfile | 5 +++++ proxy/web/error.html | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 proxy/web/error.html diff --git a/proxy/Caddyfile b/proxy/Caddyfile index c155caf..1fff47a 100644 --- a/proxy/Caddyfile +++ b/proxy/Caddyfile @@ -73,6 +73,11 @@ torrent.{$DOMAIN} http://torrent.{$DOMAIN} { import errorhandler } +*.{$DOMAIN} http://*.{$DOMAIN} { + error 404 + import errorhandler +} + root-ca.{$DOMAIN} http://root-ca.{$DOMAIN} { file_server * { root /usr/share/caddy/web diff --git a/proxy/web/error.html b/proxy/web/error.html new file mode 100644 index 0000000..2315a15 --- /dev/null +++ b/proxy/web/error.html @@ -0,0 +1,35 @@ + + + + + + Fehler + + + + + +

{{placeholder "http.error.status_code"}}

+ + {{placeholder "http.error.status_text"}} + + + + + +