nginx服务器下访问不存在的php页面No input file specified.

简介:这是nginx服务器下访问不存在的php页面No input file specified. 的详细页面,介绍了和php,No input file specified, nginx, php nginx服务器下访问不存在的php页面No input file specified.有关的知识、技巧、经验,和一些php源码等。

class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=355986' scrolling='no'> nginx服务器下访问不存在的非php页面,可以正常出现自定义的404提示页,但是访问不存在的php页面,页面信息显示

初步估计是fastcgi没把错误给Nginx
查了下nginx的文档 果然
fastcgi_intercept_errors
syntax: fastcgi_intercept_errors on|off
default: fastcgi_intercept_errors off
context: http, server, location 
默认的是off

只需在虚拟主机配置文件加入:
fastcgi_intercept_errors on;

即可。我配置了error_page 404,没有使用nginx默认的404提示页面。
效果图:
No input file specified, nginx, php nginx<a href=http://biancheng.dnbcw.info/win2003/>服务器</a>下访问不存在的php页面No input file specified.

爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具

http://biancheng.dnbcw.info/php/355986.html pageNo:2

posted on 2011-11-04 13:05  圣者  阅读(276)  评论(0)    收藏  举报

导航