Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Check if the file exists. (3 replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>