Welcome! Log In Create A New Profile

Advanced

Не работает кеширование по непонятной причине

Илья Пирогов
April 15, 2011 12:00PM
Добрый день.

Не могу понять по чему не работает кеширование. Имеется следующий конфиг:

proxy_cache_path /var/tmp/proxy levels=1:2 keys_zone=cache:150m;
proxy_temp_path /tmp/cache 1 2;

server {
server_name proxy.local;

access_log /var/log/nginx/proxy.access_log main;
error_log /var/log/nginx/proxy.error_log debug;

location / {
proxy_pass http://12.23.45.67;
proxy_set_header Host example.ru;
proxy_cache cache;
proxy_cache_valid 200 301 302 304 24h;
proxy_hide_header Set-Cookie;
proxy_set_header Cookie "";
}
}

Делаю запрос http://proxy.local/vera/infobar/1457292, картинка успешно
проксируется, но при этом не кешируется. Debug лог прилагается.

$ nginx -V
nginx version: nginx/0.8.53
TLS SNI support enabled
configure arguments: --prefix=/usr --sbin-path=/usr/sbin/nginx
--conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error_log
--pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --user=nginx
--group=nginx --with-cc-opt=-I/usr/include --with-ld-opt=-L/usr/lib
--http-log-path=/var/log/nginx/access_log
--http-client-body-temp-path=/var/tmp/nginx/client
--http-proxy-temp-path=/var/tmp/nginx/proxy
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi
--http-scgi-temp-path=/var/tmp/nginx/scgi
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi --with-debug --with-pcre
--without-http_geo_module --without-http_limit_req_module
--without-http_limit_zone_module --without-http_memcached_module
--without-http_referer_module --without-http_scgi_module
--without-http_ssi_module --without-http_split_clients_module
--without-http_upstream_ip_hash_module --without-http_userid_module
--without-http_uwsgi_module --with-http_addition_module
--with-http_gzip_static_module --with-http_perl_module
--with-http_realip_module --with-http_ssl_module --without-mail_imap_module
--without-mail_pop3_module --without-mail_smtp_module
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Attachments:
open | download - proxy.error_log (22.4 KB)
Subject Author Posted

Не работает кеширование по непонятной причине Attachments

Илья Пирогов April 15, 2011 12:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 171
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