Check if the file exists.

Felix Quintana superfelo at
Thu Feb 20 21:34:10 UTC 2014

I'm trying to check if the file exists before passing it to fastcgi but I have not found as.
This is what I'm doing:
            #if (!-f $document_root$fastcgi_script_name)

            if (!-f $request_filename)             
                return 404;

I've tried try_files but not find a way.
The file is of the form:

If it let me pass over fastcgi returns the error:
No input file specified. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list