Nginx Ignore faviconico log favicon.ico 404 online favicon favicon 1 htm disease

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.