Welcome! Log In Create A New Profile

Advanced

Как дебажить ngx_http_gzip_static_module

Alexey Bass -X (albass - Matrix Marketing at Cisco)
November 09, 2009 12:46PM
Добрый день!

Не могу понять, почему nginx не отдаёт заранее сжатые gzip'ом файлы.

Понял, что отдаётся не готовый файл, а сжимается на лету - когда начал играться с gzip_comp_level и размер файла менялся.
Дату ставил через "touch file1 file2".

В чём может быть дело?

[albass@host ~]$ /usr/local/nginx/sbin/nginx -V
nginx version: nginx/0.7.63
built by gcc 3.4.6 20060404 (Red Hat 3.4.6-3)
TLS SNI support disabled
configure arguments: --prefix=/usr/local/nginx --conf-path=/mp/conf/nginx/nginx.conf --with-zlib=/var/mp/compile/zlib-1.2.3 --with-pcre=/var/mp/compile/pcre-7.9 --http-client-body-temp-path=/var/mp/nginx/client --http-proxy-temp-path=/var/mp/nginx/proxy --with-http_stub_status_module --with-http_flv_module --with-http_ssl_module --with-http_gzip_static_module

Файлы берутся из этой директории
[albass@csi-ana-p ~]$ ls -l
total 280
-rwxr-xr-x 1 albass eng 81788 Nov 9 18:35 prototype.js
-rw-r--r-- 1 albass eng 24635 Nov 9 18:35 prototype.js.gz
-rwxr-xr-x 1 albass eng 139854 Nov 9 18:32 prototype.src.js
-rw-r--r-- 1 albass eng 31418 Nov 9 18:32 prototype.src.js.gz

Фрагмент конфига
gzip on;
gzip_min_length 512;
gzip_comp_level 6;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/javascript text/x-javascript application/x-javascript;
gzip_buffers 16 8k;
gzip_disable msie6
gzip_static on;
expires 3M;

-- Алексей
Subject Author Posted

Как дебажить ngx_http_gzip_static_module

Alexey Bass -X (albass - Matrix Marketing at Cisco) November 09, 2009 12:46PM

Re: Как дебажить ngx_http_gzip_static_module

akalend November 10, 2009 02:50AM

Re: Как дебажить ngx_http_gzip_static_module

alexbig November 15, 2009 12:24PM

Re: Как дебажить ngx http gzip static module

Maxim Dounin November 16, 2009 03:34AM

Re: Как дебажить ngx_http_gzip_static_module

Maxim Dounin November 16, 2009 03:34AM

Re: Как дебажить ngx_http_gzip_static_module

alexbig November 17, 2009 03:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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