Welcome! Log In Create A New Profile

Advanced

При включении gzip не работает chunk-encoding

November 04, 2013 05:03AM
Добрый день.

Версии: nginx - 1.2.1 + php-fpm

Нужен совет. При включении gzip-а перестает работать chunk-encoding. В заголовке ответа chunked содержится, но по-факту с включенным gzip страница не отдается частями.

Connection:keep-alive
Content-Encoding:gzip
Content-Type:text/html; charset=UTF-8
Date:Mon, 04 Nov 2013 09:57:07 GMT
Server:nginx
Transfer-Encoding:chunked
Vary:Accept-Encoding
X-Powered-By:PHP/5.4.4-14+deb7u5


Конфиги:
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 5;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

..............

upstream ********* {
server unix:/var/run/*******-fpm.sock weight=5;
server *.*.*.*:9010 weight=5;
keepalive 5;
}
.....................
server {
server_name www.***.ua;
return 301 $scheme://********.ua$request_uri;
}
server {
server_name ********.ua;
root /home/*********.ua/www;
chunkin on;

access_log /home/******.ua/logs/access.log;
error_log /home/***********.ua/logs/error.log;

charset utf-8;

include /etc/nginx/access.rules;

error_page 411 = @my_411_error;
location @my_411_error {
chunkin_resume;
}

location / {
try_files $uri @yii;
}

location = /favicon.ico {
log_not_found off;
access_log off;
}

location = /robots.txt {
log_not_found off;
access_log off;
}

location ~ \.php$ {
return 404;
}
location @yii {
include fastcgi_params;
set $memcached_key $uri;
#memcached_pass ******.ua;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 600;
fastcgi_read_timeout 600;
fastcgi_pass 127.0.0.1:9000;
#proxy_buffering off;
fastcgi_keep_conn on;
chunkin_keepalive on;
proxy_http_version 1.1;
}
Subject Author Posted

При включении gzip не работает chunk-encoding

vulgast November 04, 2013 05:03AM

Re: При включении gzip не работает chunk-encoding

vulgast November 04, 2013 05:10AM

Re: При включении gzip не работает chunk-encoding

Maxim Dounin November 05, 2013 09:32AM

Re: При включении gzip не работает chunk-encoding

vulgast November 06, 2013 08:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 142
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready