标签: Primary script unknown
FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream
打开网址出 404 File not found. 错误,但文件的确是存在的,找查nginx error log,发现这个
2016/05/12 00:01:01 [error] 24257#0: *166460 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 223.73.106.97, server: www.lnmp.cn, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.lnmp.cn"
这个是因为nginx配置文件中fastcgi_param没有设置对路径引起的,在nginx的 default.conf 配置文件中有这么一段:
#location ~ \.php$ {
&n...
[1]