location and access_log off;

Edho P Arief edhoprima at gmail.com
Fri Aug 21 07:37:46 MSD 2009


2009/8/21 Igor Sysoev <is at rambler-co.ru>:
> On Thu, Aug 20, 2009 at 12:18:55PM -0400, vilts wrote:
>
>> Hi,
>>
>> Looks like it is trying to search that file from .
>>
>> 2009/08/20 16:14:49  19796#0: *1 open() "/usr/local/nginx-passenger/html/favicon.ico" failed (2: No such file or directory)
>> 2009/08/20 16:14:49  19796#0: *2 open() "/usr/local/nginx-passenger/html/images/nav1_bg1.gif" failed (2: No such file or directory)
>> 2009/08/20 16:14:49  19796#0: *3 open() "/usr/local/nginx-passenger/html/gallery/model3_with_sheath_thumb.jpg" failed (2: No such file or directory)
>
> You should add "root" inside
>
>        location ~* .(css|js|gif|jpg|jpeg|ico)$ {
>            access_log off;
>            root  /path/to/files;
>        }
>
>> > What is in error_log ?
>

or put the root outside

root /path/to/root;

location ~* ... {
   ...
}

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





More information about the nginx mailing list