Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx 0.8.53, проблема с кэшем
В Tue, 28 Dec 2010 06:37:37 -0500
"ig0r" <nginx-forum@xxxxxxxx> пишет:
> sapsan Wrote:
> -------------------------------------------------------
> > Хмм, никто не сталкивался? Хочется на
> 0.8.х переползти уже, а такие вот
> непонятки не дают.
>
> попробуйте показать конфиг
Конфиг был в первом письме вроде.
Повторяю:
ОС:
FreeBSD 8.1-RELEASE-p1
Конфиг нжинкса:
в http секции:
proxy_cache_path /usr/local/nginx/cache levels=1:2 keys_zone=one:1024m
inactive=7d max_size=2048m;
server {
listen х.х.х.х;
server_name domain.com;
access_log /var/log/nginx/domain.com.access.log main;
error_log /var/log/nginx/domain.com.error.log;
send_timeout 30;
location / {
if ($cookie_dle_user_id) { return 412; }
if ($cookie_dle_password) { return 412; }
if ($request_method = POST ) { return 412; }
error_page 412 = @nocached;
include /usr/local/etc/nginx/conf/cache;
proxy_pass http://127.2.0.1:2190/;
include /usr/local/etc/nginx/conf/proxy;
}
location @nocached {
proxy_pass http://127.2.0.1:2190;
include /usr/local/etc/nginx/conf/proxy;
}
}
/usr/local/etc/nginx/conf/cache:
proxy_cache one;
proxy_cache_key "$request_method|$is_args|$host|$request_uri";
proxy_hide_header "Set-Cookie";
proxy_ignore_headers "Cache-Control" "Expires";
proxy_cache_valid 200 302 304 15m;
proxy_cache_valid 301 1h;
proxy_cache_valid any 1m;
proxy_cache_use_stale http_502 http_503 http_504;
proxy_cache_min_uses 1;
proxy_ignore_client_abort off;
/usr/local/etc/nginx/conf/proxy:
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 30;
proxy_buffer_size 8k;
proxy_temp_path /usr/local/nginx;
--
Close your eyes, look into the dream...
Jabber ID : sapsan@xxxxxxxxx
E-mail : sapsan@xxxxxxxxx
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|