-f $request_filename

Edho P Arief edhoprima at gmail.com
Tue Apr 20 06:29:42 MSD 2010


On Tue, Apr 20, 2010 at 12:57 AM, Tomasz Pajor <nikon at puffy.pl> wrote:
>
>> A generic method:
>>
>> location / {
>>     root /vhosts/default/test;
>>     try_files $uri $uri/ @fallback;
>> }
>>
>> location @fallback {
>>     fastcgi_pass unix:/var/run/spawn-fcgi.sock;
>>     ...
>> }
>>
>
> This seems to work, just one question.
> The fastcgi application is Zend based, but i get an
>
> 403 forbiddened when try_files is:
> $uri $uri/ @fallback
>
> when i set it up to:
> $uri @fallback
>

probably because no index was defined and autoindex is disabled.


-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



More information about the nginx mailing list