Welcome! Log In Create A New Profile

Advanced

mod_zip

October 08, 2014 08:21PM
привет.

Делаю под gentoo ebuild:

....
nginx_modules_http_mod_zip? ( https://github.com/evanmiller/mod_zip/archive/master.zip -> ngx_mod_zip.zip )
....
NGINX_MODULES_3RD="
....
http_mod_zip"
....
if use nginx_modules_http_mod_zip; then
http_enabled=1
myconf+=" --add-module=${WORKDIR}/mod_zip-master"
fi

после установки порта с оверлея, делаю nginx -V:

nginx version: nginx/1.7.4
TLS SNI support enabled
configure arguments: --prefix=/usr --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error_log --pid-path=/run/nginx.pid --lock-path=/run/lock/nginx.lock --with-cc-opt=-I/usr/include --with-ld-opt=-L/usr/lib64 --http-log-path=/var/log/nginx/access_log --http-client-body-temp-path=//var/lib/nginx/tmp/client --http-proxy-temp-path=//var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=//var/lib/nginx/tmp/fastcgi --http-scgi-temp-path=//var/lib/nginx/tmp/scgi --http-uwsgi-temp-path=//var/lib/nginx/tmp/uwsgi --with-file-aio --with-aio_module --with-pcre --without-http_auth_basic_module --without-http_autoindex_module --without-http_geo_module --without-http_scgi_module --without-http_upstream_ip_hash_module --without-http_uwsgi_module --with-http_addition_module --with-http_gzip_static_module --with-http_spdy_module --with-http_stub_status_module --with-http_sub_module --with-http_xslt_module --with-http_realip_module --add-module=external_module/mod_zip-master --add-module=external_module/nginx-upload-progress-module-0.9.1 --add-module=external_module/headers-more-nginx-module-0.25 --add-module=external_module/nginx_upstream_check_module-0.1.9 --without-http-cache --with-http_ssl_module --without-mail_imap_module --without-mail_pop3_module --without-mail_smtp_module --user=nginx --group=nginx

То есть модуль mod_zip присутствует:
--add-module=external_module/mod_zip-master

Но элементарный скриптик из серии:

<?php

$archive = [
0 => "- 1845 /test/1 test.png"
];

header("Content-Disposition: attachment; filename= test.zip");
// header('X-Archive-Files: zip');
echo implode("\r\n", $archive) . "\r\n";
exit();

Даёт скачать архив, но он некорректный. Если раскомментирую X-Archive-Files - сброс соединения. Пробовал ставить с сорцов с добавлением этого модуля версии 1.4.4, 1.4.7, 1.7.4 и 1.7.6, но поведение одинаковое - качаю архив, но битый либо сброс. При этом всё тоже самое на другой лин-машинке (не генту) все проходит превосходно.

Подскажите, пожалуйста, на что обратить внимание, как выполнить дебаг. Может у кого-то была подобная проблема?

Спасибо.
Subject Author Posted

mod_zip

makky October 08, 2014 08:21PM

Re: mod_zip

mva October 09, 2014 01:52AM

Re: mod_zip

makky October 09, 2014 02:38AM

Re: mod_zip

makky October 09, 2014 07:14AM

Re: mod_zip

makky October 09, 2014 08:08AM

Re: mod_zip

Anton Gorlov October 09, 2014 07:40AM

Re: mod_zip

makky October 09, 2014 08:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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