当前位置:Gxlcms > PHP教程 > nginx报错

nginx报错

时间:2021-07-01 10:21:17 帮助过:25人阅读

在写一个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"

回复内容:

在写一个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"

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

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

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

location = /favicon.ico {
  log_not_found off;
}

人气教程排行