From owner-freebsd-isp Fri Mar 3 6:25:11 2000 Delivered-To: freebsd-isp@freebsd.org Received: from thehousleys.net (frenchknot.ne.mediaone.net [24.147.224.201]) by hub.freebsd.org (Postfix) with ESMTP id 21F1837B5BD for ; Fri, 3 Mar 2000 06:25:07 -0800 (PST) (envelope-from jim@thehousleys.net) Received: from thehousleys.net (baby.int.thehousleys.net [192.168.0.24]) by thehousleys.net (8.9.3/8.9.3) with ESMTP id JAA10250; Fri, 3 Mar 2000 09:24:53 -0500 (EST) Message-ID: <38BFCB35.62D9B54@thehousleys.net> Date: Fri, 03 Mar 2000 09:24:53 -0500 From: James Housley Organization: The Housleys dot Net X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.4-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Keith Ward , freebsd-isp@FreeBSD.org Subject: Re: Configuration help for Apache [off-topic] References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 # # 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 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