這是網(wǎng)上的教程,設(shè)置了還是沒效果
location = /favicon.ico {
log_not_found off;
access_log off;
}
nginx還是會(huì)報(bào)錯(cuò)
2018/04/03 00:00:13 [error] 71#71: *16 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Yaf_Exception_LoadFailed_Controller: Failed opening controller script /app/src/Application/controllers/Favicon.ico.php: No such file or directory in /app/src/public/index.php:6
Stack trace:
#0 /app/src/public/index.php(6): Yaf_Application->run()
#1 {main}
thrown in /app/src/public/index.php on line 6" while reading response header from upstream, client: 172.20.0.1, server: 127.0.0.1, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "127.0.0.1:12000", referrer: "http://127.0.0.1:12000/"
nginx如何直接拒絕favicon.ico文件
動(dòng)漫人物
2019-03-18 15:29:42