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]