Is it possible to make Apache to treat zip files and other archive files as directories in some certain directories?

  • You could fuse-mount the archive, but what are you trying to achieve? Making Apache read data from an archive will not automatically compress the outgoing data. – Ken Sharp Jan 3 '16 at 20:50
  • @KenSharp I'm just seeking for a way to conveniently upload files. It's not for productive usage, so performance does not matter here. – xuhdev Jan 3 '16 at 21:00

There seems to be this older apache module (no idea if it still works with current apache versions): http://modzipread.sourceforge.net/

Is using PHP an option? PHP includes a library for opening ZIP files by default: http://php.net/manual/en/book.zip.php I'm sure that there are several sample zip browsers floating around

  • Thanks for your answer. Yes, php is acceptable. Can you give a code snippet to acheive it in php? – xuhdev Jan 3 '16 at 21:14
  • @xuhdev If you click on the link Dominik R gave you, there is a whole page with lots of examples. – Law29 Jan 3 '16 at 21:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.