-1

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

2
  • 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, 2016 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, 2016 at 21:00

1 Answer 1

5

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

2
  • Thanks for your answer. Yes, php is acceptable. Can you give a code snippet to acheive it in php?
    – xuhdev
    Jan 3, 2016 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, 2016 at 21:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .