Web Servers on Unix and Linux - [apache] Unzipping files and sending only content to the client

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > March 2004 > [apache] Unzipping files and sending only content to the client





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [apache] Unzipping files and sending only content to the client
Sebastian Stein

2004-03-03, 6:36 am

Hi folks,

I have some html files, which are packaged as zip files. In every zip file
is always only _one_ html file. The links in the html files point to the html
and not to the zip files.

Is it possible to have some kind of URL rewriting, so the zip file gets
unzipped and the extracted html file is shipped to the client? I don't want
to extract all zip files before starting the webserver. Is this possible
with apache 1.3.29?

Steinchen
--
http://www.halle-ist-schoen.de/
Bilddokumentation der schoensten Saalestadt
Steve

2004-03-05, 3:36 pm

Sebastian Stein <seb_stein@gmx.de> wrote:
> Is it possible to have some kind of URL rewriting, so the zip file gets
> unzipped and the extracted html file is shipped to the client? I don't want
> to extract all zip files before starting the webserver. Is this possible
> with apache 1.3.29?


Take a look at the Action directive
(http://httpd.apache.org/docs/mod/mo...ons.html#action).

--
Steve <news@teiresias.net>
Joachim Ring

2004-03-18, 2:05 pm

Sebastian Stein <seb_stein@gmx.de> wrote in message news:<n3sgh1-the.ln1@laptop-seb.hpfsc.de>...
> Hi folks,
>
> I have some html files, which are packaged as zip files. In every zip file
> is always only _one_ html file. The links in the html files point to the html
> and not to the zip files.
>
> Is it possible to have some kind of URL rewriting, so the zip file gets
> unzipped and the extracted html file is shipped to the client? I don't want
> to extract all zip files before starting the webserver. Is this possible
> with apache 1.3.29?


you might be lucky with mod_gunzip as the compression of zip and gzip
is similar, only zip is also an archiver for multi-file archives. for
single-file zips it should work.

joachim
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com