ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: nginx-ru@xxxxxxxxx
  • Subject: При включении gzip не работает chunk-encoding
  • From: "vulgast" <nginx-forum@xxxxxxxx>
  • Date: Mon, 04 Nov 2013 05:03:50 -0500
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=iW3ibHUGl5dgVLgB71o7E0LqracLdHKIIPfiq2ZpEUM=; b=pbsryZsm+sqi3zlomSSk2IXBNBJT/FAkJUNOpWEHY4uBQ71ziPBhniDLWPLVAM32HUgs2UxJF4sD083O4cdwLDa/Zwbwt3747uNsvK/qeqkjQjlsW+t30aDxFHhhU8cPn8GhX1jmFkeo3sCDI7jsoOtknuV7KZu6H5QS+ZUGUMM=;

Добрый день.

Версии: 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;
    }

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

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.