Welcome! Log In Create A New Profile

Advanced

Re: location and access_log off;

August 20, 2009 11:37PM
2009/8/21 Igor Sysoev <is@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
Subject Author Posted

location and access_log off;

vilts August 20, 2009 11:20AM

Re: location and access_log off;

Igor Sysoev August 20, 2009 11:38AM

Re: location and access_log off;

vilts August 20, 2009 12:18PM

Re: location and access_log off;

Igor Sysoev August 20, 2009 01:27PM

Re: location and access_log off;

edogawaconan August 20, 2009 11:37PM

Re: location and access_log off;

vilts August 21, 2009 04:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 249
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready