Re: Не работает proxy temp file size в nginx 1.1.2

vovanhost nginx-forum на nginx.us
Ср Окт 19 13:40:52 UTC 2011


Здравствуйте, Максим.

Вот обезличенная часть конфига:

server {
	listen 17080 default;
	access_log  /var/log/nginx/access.log  some_format;
	include /etc/nginx/conf.d/default_locations.inc;
}

proxy_cache_path /path/for/cache levels=1:2 keys_zone=xxx:128m
inactive=1y max_size=60g; 



upstream upstream_name {
	server server1;
	server server2 backup;
}


server {

	listen 17080;
	server_name xxx;
	access_log /path/server-access_log main;
	access_log  /var/log/nginx/access.log  some_format;

	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://upstream_name;
		proxy_next_upstream error timeout;
		proxy_temp_path /path/tmp;
		proxy_cache xxx;
		proxy_cache_key  $scheme://$proxy_host$uri;
		proxy_cache_min_uses 1; #default
		proxy_set_header  Host        upstream_host_value;
		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 168h;
		proxy_cache_valid any 0;

		proxy_cache_use_stale error timeout invalid_header updating http_500
http_502 http_503 http_504;
		proxy_connect_timeout 60;
		proxy_read_timeout 50;
		proxy_send_timeout 40;
		proxy_ignore_client_abort on;

		proxy_max_temp_file_size 16096m;
	}

        location =/robots.txt {
                log_not_found off;
        }
}
 
Вывод версии:
nginx: nginx version: nginx/1.1.2
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-debug
                            --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=/home/user/rpmbuild/BUILD/nginx-1.1.2/nginx-upstream-fair 
                           
--add-module=/home/user/rpmbuild/BUILD/nginx-1.1.2/nginx-upload-progress-module
                           
--add-module=/home/user/rpmbuild/BUILD/nginx-1.1.2/mod_zip-1.1.6 
                           
--add-module=/home/user/rpmbuild/BUILD/nginx-1.1.2/nginx_upload_module-2.2.0
                           
--add-module=/home/user/rpmbuild/BUILD/nginx-1.1.2/nginx_mod_h264_streaming-2.2.7

                           
--add-module=/home/user/rpmbuild/BUILD/nginx-1.1.2/ngx_http_bytes_filter_module

                           
--add-module=/home/user/rpmbuild/BUILD/nginx-1.1.2/echo-nginx-module 
                           
--add-module=/home/user/rpmbuild/BUILD/nginx-1.1.2/headers-more-nginx-module
                           
--add-module=/home/user/rpmbuild/BUILD/nginx-1.1.2/mod_strip 
                           
--add-module=/home/user/rpmbuild/BUILD/nginx-1.1.2/ngx_http_auth_pam_module-1.2

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,216818,216913#msg-216913



Подробная информация о списке рассылки nginx-ru