nginx报错

图片描述

在写一个rpc例子,有些php页面可以访问,有些不行并出现这问题,求告知原因

错误日志 2016/07/21 13:35:41 [error] 9212#7620: *1 CreateFile() "D:nginxnginx-1.11.2nginx-1.11.2/html/favicon.ico" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "localhost"

阅读 4.2k
2 个回答

日志拿得不对,再找找,通过日志里的路径找。

从日志上看是不能找到favicon.ico 哎,

尝试在http.conf中添加配置试试

location = /favicon.ico {
  log_not_found off;
}
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题