How to serve HTML out of a compressed archive?
November 17, 2007 9:41 AM Subscribe
I want to serve lots of different static HTML files out of a single compressed archive, to save disk space on the server. Is there a quick and easy solution for this?
posted by Galvatron to computers & internet (8 answers total) 2 users marked this as a favorite
So I got an iPod Touch recently, and could not restrain myself from running the jailbreak on it. There are some nifty third party apps out there, but I'm pretty sure the killer app for me is being able to browse a Wikipedia snapshot without requiring wifi.
Due to the disk space limitations, I'd like to serve the snapshot out of a compressed archive. Compressing each html file individually would work, but it's relatively storage-inefficient, so I'd rather have everything wrapped up in a big gzipped tarball or similar.
Is there an Apache or lighthttpd module that would make this project easy? Or is embedded OS X capable of mounting an archive through a VFS/loopback device? The fallback solution is that I write a cgi script to do the decompression, but I'm looking for something better.