mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-09 19:20:09 +01:00
fix favicon 404s: add <link rel=icon> to all pages, nginx 204 for /favicon.ico
This commit is contained in:
1 parent
e4b2205eac
commit
1fb9644d5a
9 files changed
+15
No files matched your search
@@ -183,6 +183,13 @@ server {
|
||||
add_header Content-Disposition "inline";
|
||||
}
|
||||
|
||||
# Silence favicon.ico 404s — browsers that ignore <link rel="icon"> still request this
|
||||
location = /favicon.ico {
|
||||
return 204;
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
# Root location - try files or 404
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
|
||||
Reference in new issue
Block a user