Description
Favicon.ico occupy Nginx error_log log a lot of information, we really need to view the log to cover. So here we turn it off by log_not_found off.
Realize:
Put the following configuration into the server {} block, log logging when Favicon.ico is not present
= /favicon.ico {log_not_found off;access_log off;} //log_not_foundon| if , the default is on : Enable or disable 404 error log, this command can be used to prohibit Nginx The record can't be found . Rebots . txt or Favicon . ico The error message for this type of file.
Appendix:
1. Online to see a sentence said: note error_log off does not turn off the logging function, it writes log files to a file named off, if you want to turn off error logging, you should use the following configuration: Error_log/dev/null Crit;
Off position in/usr/local/nginx/off, the installation directory of Nginx
2. Log_not_found off to error_log off, the difference is written error_log off is to output the error log to the off file, while Log_not_found is the log off.
Transferred from: http://coolnull.com/1516.html
The above describes the Nginx ignore Faviconico log, including the favicon,iconic aspects of the content, I hope that the PHP tutorial interested in a friend helpful.