Not existant files passed to php backend

Rob Schultz lists at
Wed Aug 20 21:37:31 MSD 2008

Roxis wrote:
> On Wednesday 20 August 2008, Reinis Rozitis wrote:
>> 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

Yup just place it in your php location block.
location ~ .*\.php$ {
     if (!-f $request_filename) {
          return 404;
     fastcgi_index index.php;
this is how i have been handling this without issues for sometime.
Posted via

More information about the nginx mailing list