nginx closed favicon.ico log

       Daily use nginx nginx will open the error logs and access logs, but for favicon.ico, do not need to record, recording more but temporary disk space, it closed off.

In the server {} inside with this configuration:

location = /favicon.ico {
  log_not_found off;
  access_log off;
}

 

Published 95 original articles · won praise 9 · views 50000 +

Guess you like

Origin blog.csdn.net/mrtwenty/article/details/97495948