ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

проксирование + кеширован ие. как избавится от "No such file or directory" в логах?


  • To: nginx-ru@xxxxxxxxx
  • Subject: проксирование + кеширован ие. как избавится от "No such file or directory" в логах?
  • From: Denis Kot <denis.kot@xxxxxxxxx>
  • Date: Wed, 27 Jan 2010 11:49:22 +0200
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=YcMIR/SwVIs8pvTKti7rkoxn/FZwJ0ultBu3fjcv8Vs=; b=Lj/3iavT/Yl5esuR2g+gFl9rDFWwZwxCJQWhJvSkuNQPYlya/na8pr7oqWEqkNAeZw Q8QFhYI80iQ+vJBgXBSQL7R2EIPfuEjbWfHZj4FLvLxiqeYw/T0ep05j98mDInMgJ1X1 2jKAiNgwlMjmDWSMpPUmwv1rtrp/13L1wEj4E=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Jsi/5CfVsucTKBLUC1dcDui4UNLpC3IZymCvWTOmAr2UQrfPSdw/DkM/rOR/YhRoLt O3+ckLqKwKMyZGnyOOp6nWuOLXgQTKHSWGSm3tKKvvrtEK/KsL5OaLDNhNNvzSdyekY6 RRjRKgdCIAgE4lyEGYoeXddGO4vXEmf3ISqKM=

Конфиг сейчас такой:

  location ~* 
^.+\.(jpg|jpeg|gif|gz|zip|flv|rar|wmv|avi|css|swf|png|htc|ico|mpeg|mpg|txt|mp3|mov|js)$
{
    expires max;
    error_page           404 = @fetch;
  }

  location @fetch {
    internal;
    proxy_pass http://domain.ru;
    proxy_cache domainru;
    proxy_cache_min_uses 1;
    proxy_cache_valid 200 24h;
    proxy_cache_valid any 0;
 }

и в error.log куча таких записей:
2010/01/27 09:44:32 [error] 6074#0: *122838 open()
"/usr/local/etc/nginx/html/images/thumb/d/d6/Wikimedaglia_oro4.png/40px-Wikimedaglia_oro4.png"
failed (2: No such file or directory), client: 1.2.241.175, server:
domain.by, request: "GET
/images/thumb/d/d6/Wikimedaglia_oro4.png/40px-Wikimedaglia_oro4.png
HTTP/1.1", host: "domain.by", referrer:
"http://domain.by/index.php/Main_Page/ru/?setlang=ru";
2010/01/27 09:44:32 [error] 6074#0: *122841 open()
"/usr/local/etc/nginx/html/skins/monobook/headbg.jpg" failed (2: No
such file or directory), client: 1.2.241.175, server: domain.by,
request: "GET /skins/monobook/headbg.jpg HTTP/1.1", host: "domain.by",
referrer: "http://domain.by/index.php/Main_Page/ru/?setlang=ru";
2010/01/27 09:44:32 [error] 6074#0: *122836 open()
"/usr/local/etc/nginx/html/wiki-logo.png" failed (2: No such file or
directory), client: 1.2.241.175, server: domain.by, request: "GET
/wiki-logo.png HTTP/1.1", host: "domain.by", referrer:
"http://domain.by/index.php/Main_Page/ru/?setlang=ru";
2010/01/27 09:44:32 [error] 6074#0: *122841 open()
"/usr/local/etc/nginx/html/images/e/e0/New.gif" failed (2: No such
file or directory), client: 1.2.241.175, server: domain.by, request:
"GET /images/e/e0/New.gif HTTP/1.1", host: "domain.by", referrer:
"http://domain.by/index.php/Main_Page/ru/?setlang=ru";
2010/01/27 09:44:33 [error] 6074#0: *122841 open()
"/usr/local/etc/nginx/html/images/5/5c/Danu.jpg" failed (2: No such
file or directory), client: 1.2.241.175, server: domain.by, request:
"GET /images/5/5c/Danu.jpg HTTP/1.1", host: "domain.by", referrer:
"http://domain.by/index.php/Main_Page/ru/?setlang=ru";
2010/01/27 09:44:33 [error] 6074#0: *122842 open()
"/usr/local/etc/nginx/html/images/thumb/f/f1/400px-Info_icon_001_svg.png/24px-400px-Info_icon_001_svg.png"
failed (2: No such file or directory), client: 1.2.241.175, server:
domain.by, request: "GET
/images/thumb/f/f1/400px-Info_icon_001_svg.png/24px-400px-Info_icon_001_svg.png
HTTP/1.1", host: "domain.by", referrer:
"http://domain.by/index.php/Main_Page/ru/?setlang=ru";
2010/01/27 09:44:33 [error] 6074#0: *122842 open()
"/usr/local/etc/nginx/html/skins/monobook/bullet.gif" failed (2: No
such file or directory), client: 1.2.241.175, server: domain.by,
request: "GET /skins/monobook/bullet.gif HTTP/1.1", host: "domain.by",
referrer: "http://domain.by/index.php/Main_Page/ru/?setlang=ru";
2010/01/27 09:44:33 [error] 6074#0: *122842 open()
"/usr/local/etc/nginx/html/skins/monobook/user.gif" failed (2: No such
file or directory), client: 1.2.241.175, server: domain.by, request:
"GET /skins/monobook/user.gif HTTP/1.1", host: "domain.by", referrer:
"http://domain.by/index.php/Main_Page/ru/?setlang=ru";

Denis Kot

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.