Welcome! Log In Create A New Profile

Advanced

FastCGI returning "No Input File" instead of 404

APseudoUtopia
May 21, 2009 12:25PM
Hey everyone,

This seems like it would be easily solved, but I'm not sure how. I
just finished setting up PHP on my system. It runs fine. However, when
I browse to a page like
"http://domain.com/this-php-script-does-not-exist.php" it returns "No
input file specified" instead of a normal nginx 404 error. I'm trying
to get it to display a normal 404 error instead. I've tried toggling
the fastcgi_intercept_errors, which seems like it would fix the
problem, however it didn't work.

I'm running nginx stable, 0.6.37.

It seems that try_files would work somehow, but my understanding is
that try_files does not exist in 0.6.37?

My FastCGI config is below.

location ~ .*\.php$ {
fastcgi_index index.php;
fastcgi_ignore_client_abort off;
fastcgi_intercept_errors off;
fastcgi_pass 127.0.0.1:9000;
fastcgi_read_timeout 10; # sec to wait for php-cgi to return data
fastcgi_param SCRIPT_FILENAME /usr/local/www/web_root$fastcgi_script_name;
include /usr/local/etc/nginx/fastcgi_params;
}

Thank you for any and all help.
Subject Author Posted

FastCGI returning "No Input File" instead of 404

APseudoUtopia May 21, 2009 12:25PM

Re: FastCGI returning "No Input File" instead of 404

mike May 21, 2009 12:32PM

Re: FastCGI returning "No Input File" instead of 404

edogawaconan May 21, 2009 12:41PM

Re: FastCGI returning "No Input File" instead of 404

Igor Sysoev May 21, 2009 01:44PM

Re: FastCGI returning "No Input File" instead of 404

Igor Sysoev May 21, 2009 01:46PM

Re: FastCGI returning "No Input File" instead of 404

Igor Sysoev May 21, 2009 01:51PM

Re: FastCGI returning "No Input File" instead of 404

edogawaconan May 21, 2009 09:23PM

Re: FastCGI returning "No Input File" instead of 404

Igor Sysoev May 22, 2009 03:21AM

Re: FastCGI returning "No Input File" instead of 404

edogawaconan May 22, 2009 05:31AM

Re: FastCGI returning "No Input File" instead of 404

Igor Sysoev May 22, 2009 06:08AM

Re: FastCGI returning "No Input File" instead of 404

APseudoUtopia May 22, 2009 01:49AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 118
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready