Antwort: RE: [Mod_gzip] Serving precompressed static files
*without* mod_gzip?
mod_gzip@lists.over.net
mod_gzip@lists.over.net
Thu, 8 May 2003 16:05:26 +0200
Hi Nigel,
> At the moment requests to http://turbo10.com/text and
> http://turbo10.com/text.html all end in a 404
do you have Multiviews enabled for this URL?
> and requests to http://turbo10.com/text.html.gz results in a
> gziped file - which throws up a 'Save As' box.
[ 15] HTTP/1.0 200 OK
[ 28] Cache-Control: max-age=13133
[ 17] Connection: close
[ 35] Date: Thu, 08 May 2003 14:02:07 GMT
[ 20] Accept-Ranges: bytes
[ 26] ETag: "1b02c0-59-3eb9452c"
[158] Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_python/2.7.8
Python/1.5.2 mod_ssl/2.8.12 OpenSSL/0.9.6b DAV/1.0.3 PHP/4.1.2
mod_perl/1.26 mod_throttle/3.1.2
[ 22] Content-Encoding: gzip
[ 18] Content-Length: 89
[ 32] Content-Type: application/x-gzip <=========
[ 38] Expires: Thu, 08 May 2003 17:41:00 GMT
[ 44] Last-Modified: Wed, 07 May 2003 17:41:00 GMT
Client-Date: Thu, 08 May 2003 14:00:41 GMT
Client-Response-Num: 1
You serve the file with a MIME type that is unknown to
the browser.
You need to specify the mapping of "*.html.gz" to
"text/html" - your current MIME type definition doesn't
cover that, as your file name doesn't match "*.html$"
any more.
> The MultiView setting doesn't seem to be working at all ...
Yep. Multiviews is a very special thing - it isn't
covered by "AllowOverride All", as an example.
Regards, Michael