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
This commit is contained in:
20
Caddyfile
20
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}
|
||||
}
|
||||
|
Reference in New Issue
Block a user