From eacb063bc0443fd47afbd11a1b71b81bfde5c265 Mon Sep 17 00:00:00 2001 From: elpatron Date: Thu, 2 Oct 2025 00:22:45 +0200 Subject: [PATCH] Fix: Move favicon configuration inside main domain block - Moved favicon.ico and favicon.png handlers inside stargirlnails.de block - This prevents Caddy from trying to create SSL certificates for favicon files - Uses 'handle' directive for path-specific routing within the domain - Fixes 'Invalid identifiers requested' error for favicon files --- Caddyfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Caddyfile b/Caddyfile index 5e20780..b5000da 100644 --- a/Caddyfile +++ b/Caddyfile @@ -31,19 +31,19 @@ stargirlnails.de { output file /var/log/caddy/access.log format json } + + # Favicon-Konfiguration (innerhalb der Hauptdomain) + handle /favicon.ico { + redir /favicon.png 301 + } + + handle /favicon.png { + root * /app/public + try_files {path} + } } # HTTP zu HTTPS Redirect (automatisch von Caddy) http://stargirlnails.de { redir https://stargirlnails.de{uri} permanent } - -# Favicon-Konfiguration -favicon.ico { - redir /favicon.png 301 -} - -favicon.png { - root * /app/public - try_files {path} -}