Date: Fri, 03 Mar 2000 09:24:53 -0500 From: James Housley <jim@thehousleys.net> To: Keith Ward <kward@panther.net>, freebsd-isp@FreeBSD.org Subject: Re: Configuration help for Apache [off-topic] Message-ID: <38BFCB35.62D9B54@thehousleys.net> References: <m12Qrdy-000AK2C@rowdy.panther.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Keith Ward wrote: > > Hello, > > First, sorry for posting this slightly off-topic message here. I do > so only since this may be the place where I saw the lost reference > (searched the archives but no luck), and my monitor now has a dent > from my head-banging. > > What I am in search of is reference to a url which I saw on a fairly > recient posting (somewhere, maybe within the past month), which was > explaining the configuration steps used to have Apache send gzipped > files as unzipped, text/html content when requested by the client. > > What I've got is a directory hierarchy full of text documents which > have been gzipped (.gz). Prior to being zipped, they are indexed, > and the directories are also accessable directly. What I want to > do is when someone clicks on, say... > > http://some.where.com/mydocs/topic1/part1.gz > > That my server (Apache 1.3.12) will ungzip the file and send with > a text/html (or text/plain) content type so the content is then > displayed as plain text in the client browser. > Not a problem. Mine is doing that by default (http://rfc.thehousleys.net). I believe the following will do it <IfModule mod_mime.c> # # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress # information on the fly. Note: Not all browsers support this. # Despite the name similarity, the following Add* directives have nothing # to do with the FancyIndexing customization directives above. # AddEncoding x-compress Z AddEncoding x-gzip gz tgz </IfModule mod_mime.c> This is an excertp from the latest apache+php+mod_ssl-1.3.12+3.0.15+2.6.1 w/mod_auth_mysql-2.20 Jim -- Unix is very user-friendly. It's just picky who its friends are. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38BFCB35.62D9B54>