Check if the file exists.

Francis Daly francis at daoine.org
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.

http://nginx.org/en/docs/http/ngx_http_core_module.html#variables

See also http://nginx.org/en/docs/http/ngx_http_core_module.html#try_files
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,

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list