Check if the file exists.

Francis Daly francis at
Thu Feb 20 22:10:45 UTC 2014

On Thu, Feb 20, 2014 at 02:01:22PM -0800, Felix Quintana wrote:

Hi there,

> >What http request do you make?
> https://localhost/web/app.php/asd/fgh
> >What file on your filesystem do you want to check the existence of?
> >What file on your filesystem do you want to tell the fastcgi server to process?
> d:\symfony\web\app.php
> >What nginx variables hold the names of the files you care about?
> I have no idea.

See also
and the usual way it is used for php/fastcgi checking.

With the other directive mentioned, you'll possibly (untested!) be able to use

 try_files $fastcgi_script_name =404

in your fastcgi-processing location.

Good luck with it,

Francis Daly        francis at

More information about the nginx mailing list