Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 72650 invoked from network); 24 May 2006 16:54:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 May 2006 16:54:16 -0000 Received: (qmail 11513 invoked by uid 500); 24 May 2006 16:54:05 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 11498 invoked by uid 500); 24 May 2006 16:54:05 -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 11487 invoked by uid 99); 24 May 2006 16:54:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2006 09:54:04 -0700 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 CROLLER@generali.fr designates 193.57.141.2 as permitted sender) Received: from [193.57.141.2] (HELO hoche.generali.fr) (193.57.141.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2006 09:54:02 -0700 Received: from clichy.generali.fr (fwrle.generali.fr [172.30.1.3]) by hoche.generali.fr (Postfix) with ESMTP id 1B9FB5C2F1 for ; Wed, 24 May 2006 18:53:41 +0200 (CEST) Received: from dsi-w109mes0.Groupe.Generali.fr (unverified) by clichy.generali.fr (Content Technologies SMTPRS 4.3.19) with ESMTP id for ; Wed, 24 May 2006 18:51:17 +0200 Received: from EVS1.Groupe.Generali.fr ([10.6.1.16]) by dsi-w109mes0.Groupe.Generali.fr with Microsoft SMTPSVC(6.0.3790.1830); Wed, 24 May 2006 18:53:41 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Wed, 24 May 2006 18:53:40 +0200 Message-ID: <28FAF14BC5BCD948A85F8685AB7087973D4DF1@EVS1.Groupe.Generali.fr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] mod_deflate/mod_filter configuration Thread-Index: AcZ/Upu6+wVUewD1SCy+qhE3vxlQow== From: "ROLLER Carl" To: X-OriginalArrivalTime: 24 May 2006 16:53:41.0013 (UTC) FILETIME=[9C219450:01C67F52] X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] mod_deflate/mod_filter configuration X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I want to use mod_deflate (in Apache 2.2.2) as I used mod_gzip before (in Apache 1.3): compressing with file extensions inclusions AND MIME-type, request-header and response-header exclusions. mod_gzip Apache 1.3 configuration: mod_gzip_on Yes mod_gzip_dechunk yes mod_gzip_temp_dir /tmp mod_gzip_keep_workfiles No mod_gzip_minimum_file_size 1000 mod_gzip_maximum_file_size 2000000 mod_gzip_maximum_inmem_size 60000 mod_gzip_item_include file \.?htm mod_gzip_item_include file \.txt mod_gzip_item_include file \.xml mod_gzip_item_include file \.xsl mod_gzip_item_include file \.dtd mod_gzip_item_include file \.jsp mod_gzip_item_include file \.jsv mod_gzip_item_include file \.do mod_gzip_item_include file \.asp mod_gzip_item_include file \.srv mod_gzip_item_include mime ^text/.* mod_gzip_item_exclude mime ^text/css mod_gzip_item_exclude reqheader "x-flash-version: .*" mod_gzip_item_exclude rspheader "Content-Disposition: attachment" mod_deflate Apache 2.2.2 configuration: DeflateBufferSize 8192 DeflateCompressionLevel 6 DeflateFilterNote Ratio ratio DeflateMemLevel 9 DeflateWindowSize 15 FilterDeclare comp-resp FilterProvider comp-resp DEFLATE Request_URI /\.?htm|\.txt|\.xml|\.xsl|\.dtd|\.jsp|\.jsv|\.do|\.asp|\.srv/ FilterProvider comp-resp DEFLATE Content-Type /^text.*/ FilterProvider comp-resp INFLATE Content-Type /^text.css/ FilterProvider comp-resp DEFLATE Content-Disposition !/^attachment.*/ FilterProvider comp-resp INFLATE req=3Dx-flash-version * FilterProtocol comp-resp change=3Dyes FilterChain comp-resp I'm not sure it is the right way to compress text.* except text.css by writing 2 FilterProvider lines. Maybe Perl Compatible Regular Expressions allows writing it an easier way... With Content-Disposition I must deflate a negation of attachment otherwise, it doesn't work (deflate everything). I've got the inverse problem for req where I must inflate every x-flash-version. =20 Is the option --with-pcre an obligation in the configure process before building to use regular expressions this way? What type of regular expression is used if it's not PCRE? This configuration is working for the moment, but it doesn't appear to be very stable. Has anyone a similar configuration? By the way, there is a problem in specifying "resp=3D" in the FilterProvider declaration, but a bug has already been opened for this (Bug#: 39420). Thanks in advance, Carl ROLLER --------------------------------------------------------------------- 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