nginx no input file specified错误解决
<H3 class="title pre fs1"><FONT size=5><FONT face=微软雅黑><SPAN class=tcnt>nginx no input file specified错误解决</SPAN><SPAN class="bgc0 fc07 fw0 fs0"></SPAN></FONT></FONT></H3><P style="LINE-HEIGHT: 20px" class="tdep clearfix nbw-act fc06"><SPAN class=pleft><A class="fc03 m2a" href="http://wang01ning.blog.163.com/blog/#m=0&t=1&c=fks_087069087081080065081087081095092080081066083095086"><FONT color=#ee0807>错误及处理</FONT></A> <SPAN class=sep>2010-05-04 16:30:57</SPAN> <SPAN class=sep>阅读<SPAN id=$_spanReadCount>295</SPAN></SPAN> <SPAN class=sep>评论<SPAN id=$_spanCommentCount>0</SPAN></SPAN> </SPAN><SPAN class="pright fc07 ztag"><SPAN class=sep index="0" __tabkey__="true" __1282291456425__="ev_8096035316"></SPAN> 字号:<SPAN class="ul sep fc04" index="1" __tabkey__="true" __1282291456425__="ev_6151753006"><U><FONT color=#ee0807>大</FONT></U></SPAN><SPAN class="ul sep fc04 selected js-fcurrent fc05" index="2" __tabkey__="true" __1282291456425__="ev_9198222532"><STRONG><FONT color=#fa0808>中</FONT></STRONG></SPAN><SPAN class="sep ul fc04" index="3" __tabkey__="true" __1282291456425__="ev_4559316752"><U><FONT color=#ee0807>小</FONT></U></SPAN></SPAN><SPAN id=$_blog_subscribe class="pright pnt fc03" __1282291456425__="ev_9520689435"><SPAN class="iblock icn0 icn0-419"> </SPAN><A class=m2a>订阅</A></SPAN> </P>
<DIV class="bct fc05 fc11 nbw-blog ztag js-fs2">
<P>nginx: no input file specified. 错误解决</P>
<P> </P>
<P>vim nginx.conf (加include fastcgi_params;)</P>
<P> location ~ .*\.(php|php5)?$<BR> {<BR> #fastcgi_pass unix:/tmp/php-cgi.sock;<BR> fastcgi_pass 127.0.0.1:9000;<BR> fastcgi_index index.php;<BR> include fastcgi_params;<BR> include fcgi.conf;<BR> }</P>
<P><BR>vim fcgi.conf (SCRIPT_FILENAME的目录)</P>
<P>fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<BR>fastcgi_param SCRIPT_NAME $fastcgi_script_name;<BR>fastcgi_param REQUEST_URI $request_uri;<BR>fastcgi_param DOCUMENT_URI $document_uri;<BR>fastcgi_param DOCUMENT_ROOT $document_root;<BR>fastcgi_param SERVER_PROTOCOL $server_protocol;</P>
<P>对应document_root的权限必须与nginx.conf和fcgi.conf的用户一样</P></DIV>
页:
[1]