mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
fix favicon 404s: add <link rel=icon> to all pages, nginx 204 for /favicon.ico
This commit is contained in:
@@ -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