log off:

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

or proxy pass:

location = /favicon.ico {  
        proxy_pass https://www.baidu.com/img/favicon.ico;
        proxy_set_header   Referer   https://www.baidu.com/img/favicon.ico;
}

发表回复

您的电子邮箱地址不会被公开。

Captcha Code