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]

proxy_cache


  • To: nginx-ru@xxxxxxxxx
  • Subject: proxy_cache
  • From: <hempalex@xxxxxxxxx>
  • Date: Fri, 9 Jul 2010 16:03:29 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=kZGn7LsYUvlnmUhm/BzkxbhTkEQO6QhjaHAvAG+uz/o=; b=joup/jwcg7tidR2oQUvbBkGkPRqUsGv3ieTcnnF8wLzZe4uYq+o7fDHA0T08sDQQ4z qmsUPZOv3Dd4lifGnVg+h1LOP/zD7meno3kyI2/04IxhJ17H/tGMY/wuk8jfm+nxUPit 3NzAYtlD7oMhWXtN13PmQdaTPTHXX8c91rAkI=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=jXIrRN/QGVv4msl1JG8tFo+xvZbZQ4soVi6yh65DEP6MEiFYxhBYut552KP7GQHoEi /PonYsPBVIQKVy3cFbPaVJ4aglCgJ9GjnyN6gE/0FwxU/qGDcAlQ0KtIy61REgjGqId7 S5BzZwXO8r4z9Et1Bb95fD6kJkqWDpIxl+Oy4=
  • Resent-date: Tue, 13 Jul 2010 13:24:14 +0400
  • Resent-date: Tue, 13 Jul 2010 13:24:14 +0400
  • Resent-from: Igor Sysoev <igor@xxxxxxxxx>
  • Resent-message-id: <20100713092414.GC87571@xxxxxxxxxxxxx>
  • Resent-to: nginx-ru@xxxxxxxxx


() nginx

̚

http {
...

proxy_cache_key "$request_method|$host|$request_uri";
proxy_cache_path /var/db/nginx levels= keys_zone=one:10m inactive=20m max_size=500m;
proxy_cache_min_uses 1;
proxy_cache_valid 200 301 302 304 5m;
proxy_cache_use_stale error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_hide_header "Set-Cookie";
proxy_ignore_headers "X-Accel-Redirect" "X-Accel-Expires" "Expires" "Cache-Control";
proxy_cache off;
proxy_temp_path /var/spool/nginx 1 2;
...

server {
server_name server.name;
listen 1.2.3.4:80;
location / {
proxy_redirect off;
proxy_cache one;
}
}

}

, , , .

, www nginx . . error-log nginx- ...

,

FreeBSD 8.0 amd64

!
.




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


 




Copyright © Lexa Software, 1996-2009.