在stderr中发送的Nginx 1 FastCGI:“主要脚本未知”
我第一次使用Nginx,但是我对Apache和Linux的了解不止于此。我正在使用一个现有项目,并且每当尝试查看index.php时,都找不到404文件。 这是access.log条目: 2013/06/19 16:23:23 [error] 2216#0: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.ordercloud.lh" 这是网站可用的文件: server { set $host_path "/home/willem/git/console/www"; access_log /www/logs/console-access.log main; server_name console.ordercloud; root $host_path/htdocs; set $yii_bootstrap "index.php"; charset utf-8; …