custom 404 error_page seems to conflict with access_log off
António P. P. Almeida
appa at perusio.net
Sun Feb 26 23:07:51 UTC 2012
On 26 Fev 2012 20h43 CET, gpakosz at yahoo.fr wrote:
This is what I usually employ for battling the dreaded missing favicon
error.
location = /favicon.ico {
access_log off;
try_files $uri @empty;
}
location @empty {
empty_gif; # send a in-memory 1x1 transparent GIF
}
If you prefer to just send a 204, do:
location = /favicon.ico {
access_log off;
try_files $uri =204;
}
HTH,
--- appa
More information about the nginx
mailing list