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.