nginx 403 forbidden,nginx No input file specified

windows 下配置nginx+php : http://www.cnblogs.com/huayangmeng/archive/2011/06/15/2081337.html

nginx 403 forbidden


网上有得到三种会产生这个问题的原因:
1,指定的webRoot目录权限不足:提升权限
2,要访问的文件不存在:假如整合了php,你会运行 localhost,其实要访问的是webRoot下面的index.php文件,这个时候就需要查看这个文件是不是不存在了。如果不存在,添加上要访问的文件
3,配置出错,nginx默认不支持访问index.php所以需要添加上index.php,如下:

location / {
            root   D:/web/cg;
            index  index.html index.htm index.php;
        }

No input file specified

问题原因:http://blog.163.com/cobyeah@126/blog/static/140137653201142945054441/
解决方法:
location ~
\.php$ {
root D:
/wnmp/www;
fastcgi_pass
127.0.0.1:9000;
fastcgi_index index
.php;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
include fastcgi_params
;
}
原文地址:https://www.cnblogs.com/overstep/p/3010499.html