Is it possible to configure Apache httpd to treat zip files as if they were directories. I would like to be able to serve a directory tree both as a zip-file and as a directory, but I would like to avoid having to keep both on disk. If possible, I'd like to just have the zip files on disk and let Apache serve them as regular directories, but the otherway around would work too.
Asked
Active
Viewed 1,291 times
1 Answers
1
Probably not, because zip is sequence structured, means if somebody access the last file in the zip file, the whole zip need to be read to extract the last file.

Zang MingJie
- 5,164
- 1
- 14
- 27
-
I would be ok for me if the entire zip was unpacked automatically. I'm not worried about the space, I want to avoid the administration around unpacking the directory on the server. Just placing a zip file in a certain location is much easier. – JesperE Sep 05 '12 at 11:07
-
Why not write a script to watch/unzip zip files automatically ? – Zang MingJie Sep 05 '12 at 11:32
-
Well, I could do that. But if there was built-in support for this, it would be better. – JesperE Sep 05 '12 at 12:20
-
2Zip files are not sequence structured, tar files are. This should be possible. – John Foley Apr 28 '20 at 14:45