如何摆脱 nginx 中的所有以下错误。我没有 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 中有几行?
请您参考如下方法:
location = /favicon.ico {
log_not_found off;
}