Check if the file exists.

Felix Quintana superfelo at yahoo.com
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:
/web/app.php/asd/fgh?ert=xx

If it let me pass over fastcgi returns the error:
No input file specified. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140220/99f59d89/attachment.html>


More information about the nginx mailing list