Just began using mod_zip recently - I have a setup working ATM whereby NGINX is serving zipfile requests; however, I want to know if it is possible to modify the directory paths in the unzipped contents.
The following screenshot should explain my question...
Instead of all the leading directory paths, I would prefer the output contents to omit those leading paths and simply unzip to the *.tif files contained at /mnt/data/userdata/{userhash}/outputs/cinema4d/23.008/{project-name}/{file-name}.
I imagine this should be possible using some NGINX rewrite or some other modification to my location, which looks like:
# mod_zip location helper
# Note: The leading ^~ is essential here, no more checks should be done after this match
location ^~ /mnt/data/userdata/ {
internal;
root /;
}
Hi guys,
Just began using
mod_zip
recently - I have a setup working ATM whereby NGINX is serving zipfile requests; however, I want to know if it is possible to modify the directory paths in the unzipped contents.The following screenshot should explain my question...
Instead of all the leading directory paths, I would prefer the output contents to omit those leading paths and simply unzip to the
*.tif
files contained at/mnt/data/userdata/{userhash}/outputs/cinema4d/23.008/{project-name}/{file-name}
.I imagine this should be possible using some NGINX rewrite or some other modification to my location, which looks like:
Thanks for your thoughts/help.