Welcome! Log In Create A New Profile

Advanced

mod_zip usage - invalid file list from upstream

September 04, 2012 06:57PM
Hi,

I am looking for some help with usage of mod_zip (version 1.1.6) as I am having problems getting this module to work. I am using Nginx in proxy mode to an Apache webserver running PHP which is used to generate the zip file listing.

My nginx config is as follows:


# ------------------------------------------------------------------
server {
listen 81;
server_name localhost;

location / {
root /usr/share/nginx/html;
index index.html index.htm;

}

# proxy the PHP scripts to Apache
location ~ \.php$ {

proxy_pass http://127.0.0.1:82;
proxy_redirect off;
}
}
# ------------------------------------------------------------------


The php script on apache outputs the zip file list and headers to activate mod_zip as:

# -----------------------------------------------------------------------
2f00d406 25104 %2Fimgs%2Fcat1.jpg cat1.jpg
6d82ff48 112711 %2Fimgs%2Fcat2.jpg cat2.jpg
52c66ed9 50328 %2Fimgs%2Fcat3.jpg cat3.jpg
# -----------------------------------------------------------------------


Located on the hard drive of this server in directory /usr/share/nginx/html/imgs/ exist the files mentioned in the zip file listing.


When I attempt to access the php ZIP URL it returns an HTTP error 324 and the nginx error_log file contains.

[error] 25366#0: *1 mod_zip: invalid file list from upstream while sending to client

Looking at the source code of mod_zip it appears this error is a result of mod_zip failing to parse the zip file list correctly. However I can not see whats wrong with it. Can someone here provide me any advice?

Thanks.
Subject Author Posted

mod_zip usage - invalid file list from upstream

sdee September 04, 2012 06:57PM

Re: mod_zip usage - invalid file list from upstream

sdee October 02, 2012 09:13PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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