From users-return-59907-apmail-httpd-users-archive=httpd.apache.org@httpd.apache.org Fri Feb 03 01:19:54 2006 Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 5993 invoked from network); 3 Feb 2006 01:19:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Feb 2006 01:19:54 -0000 Received: (qmail 63024 invoked by uid 500); 3 Feb 2006 01:19:46 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 62050 invoked by uid 500); 3 Feb 2006 01:19:43 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 62039 invoked by uid 99); 3 Feb 2006 01:19:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2006 17:19:43 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of oshato@gmail.com designates 64.233.162.206 as permitted sender) Received: from [64.233.162.206] (HELO zproxy.gmail.com) (64.233.162.206) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2006 17:19:42 -0800 Received: by zproxy.gmail.com with SMTP id v1so547978nzb for ; Thu, 02 Feb 2006 17:19:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VxhyiUMYwABQ+RfX4olcoOiuTAifjnnsWQv0C4LfTouDAZTn0+4r8+Ti3hJpp8+ubaKi6/aWY+PtgUU6Fxj8C3woIpm44nhvsEk3r/jYb0LFx2v8Zdl2Kr/8Za83P3Zn2dvUeFdkSgM3GrORx1vySfzKR4DBmQwnU4gsDmU73mw= Received: by 10.36.88.7 with SMTP id l7mr1119374nzb; Thu, 02 Feb 2006 17:19:22 -0800 (PST) Received: by 10.36.108.6 with HTTP; Thu, 2 Feb 2006 17:19:22 -0800 (PST) Message-ID: <126e6d090602021719r7717b7c4n76b6bd8ba8cf911@mail.gmail.com> Date: Thu, 2 Feb 2006 20:19:22 -0500 From: Vizzini Sampere To: users@httpd.apache.org In-Reply-To: <200602021332.46954.nick@webthing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <126e6d090602020416k7a3b932coaf415163d16233ad@mail.gmail.com> <200602021332.46954.nick@webthing.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Can't serve pre-compressed (gzip) html on Apache 2.0.55 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 2/2/06, Nick Kew wrote: > > I'm having trouble configuring an Apache 2.0.55 (32-bit; linux;) to > > serve pre-compressed (gzip 1.3.5) html files (for inline browser > > rendering) > > That's usual. Is anyone aware of a way to serve precompressed content in apache 2.0.x? Multiviews, type-map or what ever? I'm fairly certain if I can see a reproducible example of this working, I can get it the rest of the way with type-map. > > using AddHandler type-map. > > Why? That's a bunch of added complexity. When I use multiviews, I observe Apache slowing a good 20-30%. I read a lot of 'opinions' on the Internet, and came to believe the slowdown is related to Apache performing an opendir on each hit just to search for candidates matching /^index\.*$/. like the '.htaccess' look-ups, Apache does not cache these look-ups and they are done every single hit. Each of my directories has roughly 1k-5k files on average (just shy of 7k in the largest dir). When I used a type-map, apache appeared much 'snappier' under load and I could still have static content in both html (4.0.1) and xml (1.0; xhtml 1.1). > > Using the type-map, Firefox (1.5) and Safari (2.0.3) are not > > displaying the content inline, they both want to download the > > 'application/x-gzip' instead. > > That's what Content-Type is for. See RFC2616. I spent most of the afternoon re-reading it... I still believe the goal is= : Content-Encoding: gzip Content-Type: application/xml Am I correct? How do I get apache to offer this for static files? There are no proxies involved between the broweser and server The only time I observed apache injecting the 'Content-Encoding: gzip' it explisityl overode the 'Content-Type: application/xml' that I specified with 'Content-Type: application/x-gzip'. (see the last ethereal summary from the first post) > > Both browsers behave properly when > > un-compressed files are dynamically compressed via mod_deflate > > (verified with ethereal included bellow). > > They'll do that with compressed content too, if you don't mess up > the content-type. thanks for the reply!!!! --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org