Access the nonexistent php page Noinputfilespecified on the nginx server

Source: Internet
Author: User
Access the nonexistent php page Noinputfilespecified on the nginx server. in nginx/conf/nginx. conf & nbsp; found: fastcgi_param & nbsp; SCRIPT_FILENAME & nbsp;/scripts $ f access the non-existent php page under the nginx server No input file specified.
Find nginx/conf/nginx. conf:
Fastcgi_param SCRIPT_FILENAME/scripts $ fastcgi_script_name; changed:
Fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name;


Http://apps.hi.baidu.com/share/detail/31677987
Http://www.oschina.net/question/57933_27069




When a non-php page does not exist under the nginx server, the custom 404 page is displayed normally. However, when a non-existent php page is accessed, the page information is displayed.
It is preliminarily estimated that fastcgi did not give the error to Nginx
Check nginx documentation.
Fastcgi_intercept_errorssyntax: fastcgi_intercept_errors on | offdefault: fastcgi_intercept_errors offcontext: http, server, location is off by default

Add the following content to the VM configuration file:
fastcgi_intercept_errors on;

You can. I configured error_page 404 and did not use the nginx default 404 prompt page.
:



Compiling in the configuration file]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.