Nginx 和 favicon.ico - “GET/favicon.ico HTTP/1.1"失败的 [英] Nginx and favicon.ico - "GET /favicon.ico HTTP/1.1" FAILED

查看:125
本文介绍了Nginx 和 favicon.ico - “GET/favicon.ico HTTP/1.1"失败的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何消除 nginx 中的所有以下错误.我没有 favicon.ico

How to I get rid of all the below errors in nginx. I do not have a favicon.ico

2012/03/11 17:13:25 [error] 959#0: *116 open() "/usr/local/nginx/html/favicon.ico" failed (2: No such file or directory), client: 111.68.59.75, server: 127.0.0.1, request: "GET /favicon.ico HTTP/1.1"  

我会想象 nginx conf 中有几行?

I would imagine some line in nginx conf?

推荐答案

location = /favicon.ico {
  log_not_found off;
}

这篇关于Nginx 和 favicon.ico - “GET/favicon.ico HTTP/1.1"失败的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆