location and access_log off;

Igor Sysoev is at rambler-co.ru
Thu Aug 20 21:27:32 MSD 2009


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 ?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list