httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ROLLER Carl" <CROL...@generali.fr>
Subject [users@httpd] mod_deflate/mod_filter configuration
Date Wed, 24 May 2006 16:53:40 GMT
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=x-flash-version *
FilterProtocol comp-resp change=yes
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.
 
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=" 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 <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message