随笔分类 -  nginx相关问题解决

nginx+php部署FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream错误
摘要:部署zabbix的lnmp环境时,测试php页面打不开,查看nginx的errorlog日志,报错FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, 1、网上查询有 阅读全文
posted @ 2020-04-02 09:36 牛肉丨火锅 阅读(14881) 评论(0) 推荐(0)
nginx+php部署时/srv/nginx/html/favicon.ico" failed (2: No such file or directory)错误
摘要:网上关于此问题的解决方法千篇一律。解决方法就是关闭favicon.ico的日志 编辑nginx.conf,添加如下命令 location = /favicon.ico { log_not_found off; access_log off; } 阅读全文
posted @ 2020-04-02 09:12 牛肉丨火锅 阅读(6611) 评论(0) 推荐(0)