Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Как дебажить ngx_http_gzip_static_module
 
- To: <nginx-ru@xxxxxxxxx>
 
- Subject: Как дебажить ngx_http_gzip_static_module
 
- From: "Alexey Bass -X (albass - Matrix Marketing at Cisco)" <albass@xxxxxxxxx>
 
- Date: Mon, 9 Nov 2009 18:37:45 +0100
 
- Authentication-results: ams-iport-1.cisco.com; dkim=neutral (message not signed) header.i=none
 
- Content-class: urn:content-classes:message
 
- Thread-index: AcphY1jLUsTn1ilrSj+0tIku7Aznbg==
 
- Thread-topic: Как дебажить ngx_http_gzip_static_module
 
 
 
Добрый день!
Не могу понять, почему 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;
-- Алексей
 
 
 |