Welcome! Log In Create A New Profile

Advanced

Re: 404 instead of "no inout file specified"?

Roxis
July 01, 2009 10:01AM
On Wednesday 01 July 2009, Nuno Magalhães wrote:
> Greetings,
>
> If i provide a valid URL, it's processed.
> If i provide an invalid URL, nginx shows the 404 page except it the
> invalid URL ends in .php - in that case i get the "no input file
> specified" message.
>
> I'm in the process of changing my php files to an html extension (i
> assume that would "fix" things), however, i'd like to get a 404
> instead of the message regardless.
>
> I tried using "fastcgi_intercept_errors off" in the conf for my server
> (in sites-available), but it didn't do anything (i did restart both
> nginx and the fast-cgi processes).
>
> Is there a better way?
>
> TIA,
> Nuno Magalhães

fastcgi_intercept_errors is off by default
you need to set it on

fastcgi_intercept_errors on;
Subject Author Posted

404 instead of "no inout file specified"?

Nuno Magalhães July 01, 2009 09:52AM

Re: 404 instead of "no inout file specified"?

Roxis July 01, 2009 10:01AM

Re: 404 instead of "no inout file specified"?

Maxim Dounin July 01, 2009 10:20AM

Re: 404 instead of "no inout file specified"?

Leechael Yim July 07, 2009 01:47PM

Re: 404 instead of "no inout file specified"?

edogawaconan July 07, 2009 02:09PM

Re: 404 instead of "no inout file specified"?

Leechael Yim July 07, 2009 02:30PM

Re: 404 instead of "no inout file specified"?

Maxim Dounin July 07, 2009 03:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 178
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