您的位置:首页 > 运维架构 > Nginx

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

2011-11-04 13:05 561 查看
简介:这是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提示页面。
效果图:


服务器
下访问不存在的php页面No input file specified. " width="600" border="0">

爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具
http://biancheng.dnbcw.info/php/355986.html pageNo:2
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: