-f $request_filename

Tomasz Pajor nikon at puffy.pl
Mon Apr 19 19:25:12 MSD 2010


> Hello
>> Got something like this, but the break seams to not work,
>> and the file is being processed by the php fastcgi process.
>>
>> Any clue why?
>>
>> location / {
>>      if (-f $request_filename) {
>>        root /vhosts/default/test;
>>        break;
>>      }
>>
>>      try_files $uri $uri/ @fallback;
>>      fastcgi_pass unix:/var/run/spawn-fcgi.sock;
>>      
> Wow.  I wonder what you are trying to achieve...
>    
When requesting http://domain.tld/sitemap.xml the request should
got to the fastcgi process, because that needs to be generated from 
application.

But when requesting other xml files it should use the files;




More information about the nginx mailing list