Not existant files passed to php backend

Roxis roxis at list.ru
Wed Aug 20 20:56:13 MSD 2008


On Wednesday 20 August 2008, Reinis Rozitis wrote:
> > No, they does not impact the perfomance, but they has many limits
> > and drawbacks.
>
> Seems like stumbled on one of those -  if (!-f $request_filename) { ...
> doesnt take in note index directive files...
>
> Eg if you open http://domain.com  instead of the index.php the if() is hit
> and in my case 404 returned :(
>
> Is this also expected that $request_filename doesnt containt the index file
> if there is such in config and also on disk?
>
> rr

after internal redirect by ngx_http_index_module
$request_filename will contain index file

simple don't use "if (!-f $request_filename)" in "location /" block





More information about the nginx mailing list