Welcome! Log In Create A New Profile

Advanced

Check if the file exists.

Felix Quintana
February 20, 2014 04:36PM
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. _______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Check if the file exists.

Felix Quintana February 20, 2014 04:36PM

Re: Check if the file exists.

Francis Daly February 20, 2014 04:56PM

Re: Check if the file exists.

Felix Quintana February 20, 2014 05:02PM

Re: Check if the file exists.

Francis Daly February 20, 2014 05:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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