Welcome! Log In Create A New Profile

Advanced

не меняется proxy_cache_key

January 15, 2012 03:45PM
Доброй ночи.

Сталкнулся со следующей проблемой:

По reload не изменяется значение proxy_cache_key.
Создавал новый proxy_cache_path по другому пути и с новым именем. Nginx все равно работает со старым.
Если сделать restart, то конечно все подхватывается.
В чем может быть проблема? Это фича или баг? Раньше (в nginx < 1.0) помогало изменение имени кеша.

Причастная конфигурация:
proxy_cache_path /path/to/cache levels=1:2 keys_zone=my_cache:128m inactive=1y max_size=50g;

location /
{
open_file_cache max=1024 inactive=600s;
open_file_cache_valid 2000s;
open_file_cache_min_uses 1;
open_file_cache_errors on;

proxy_pass http://backend;
proxy_next_upstream error timeout;
proxy_temp_path /path/to/tmp;
proxy_cache my_cache;
proxy_cache_key $scheme://$proxy_host$uri;

proxy_cache_min_uses 1; #default
proxy_set_header Host backend;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_cache_valid 200 301 302 304 24d;
proxy_cache_valid any 1m;

proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
proxy_connect_timeout 5;
proxy_read_timeout 20;
proxy_send_timeout 20;
}

Версия nginx:
nginx: nginx version: nginx/1.0.6
nginx: built by gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
nginx: TLS SNI support disabled
nginx: configure arguments: --user=nginx --group=nginx --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --with-http_secure_link_module --with-http_random_index_module --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ipv6 --with-file-aio --add-module=/opt/rpmbuild/BUILD/nginx-1.0.6/nginx-upstream-fair --add-module=/opt/rpmbuild/BUILD/nginx-1.0.6/nginx-upload-progress-module --add-module=/opt/rpmbuild/BUILD/nginx-1.0.6/mod_zip-1.1.6 --add-module=/opt/rpmbuild/BUILD/nginx-1.0.6/nginx_upload_module-2.2.0 --add-module=/opt/rpmbuild/BUILD/nginx-1.0.6/nginx_mod_h264_streaming-2.2.7 --add-module=/opt/rpmbuild/BUILD/nginx-1.0.6/ngx_http_bytes_filter_module
Subject Author Posted

не меняется proxy_cache_key

vovanhost January 15, 2012 03:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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