Changes between Version 20 and Version 21 of FileCompression


Ignore:
Timestamp:
Jan 17, 2012, 11:41:06 PM (13 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FileCompression

    v20 v21  
    2121Use the 'min_core_client_version' entry in config.xml to enforce this.
    2222
    23 ==== Apache mod_deflate ====
    24 You can use the Apache 2.0 mod_deflate module to automatically compress files on the fly.
    25 See http://httpd.apache.org/docs/2.0/mod/mod_deflate.html.
    26 This method will work with all BOINC clients, but it will do compression only for 5.4+ clients.
    27 
    28 You can use this in conjunction with gzip encoding because the mod_deflate module
    29 allows you to exempt certain filetypes from on-the-fly compression.
    30 
    31 This method increases CPU load on the web server, but this is typically not significant.
    32 
    33 ==== Configuration File ====
    34 
    35 You'll need to modify your `httpd.conf` file; example:
    36 
    37 {{{
    38 # Enable module
    39 LoadModule deflate_module modules/mod_deflate.so
    40 
    41 # Log file compression
    42 DeflateFilterNote Input instream
    43 DeflateFilterNote Output outstream
    44 DeflateFilterNote Ratio ratio
    45 
    46 LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
    47 CustomLog logs/deflate_log deflate
    48 
    49 # Use low settings for compression to make sure impact on server is low
    50 DeflateMemLevel 2
    51 DeflateCompressionLevel 2
    52 
     23{{{
    5324# Add encoding type
    5425AddEncoding x-gzip .gz
     
    7950This configuration tells Apache to redirect to the statically compressed files
    8051if the extension is vmdk, exe, dll, or pdb.
    81 All other files are compressed on-the-fly from the download direction except for files
     52All other files are compressed on-the-fly from the download directory except for files
    8253that end with `gz`,`gif`,`jpg`,`jpeg` and `png`.
    8354
     
    9263This configuration tells Apache to compress only the file types `.faa` and `.mask`
    9364served from the download directory.
     65==== Apache mod_deflate ====
     66You can use the Apache 2.0 mod_deflate module to automatically compress files on the fly.
     67See http://httpd.apache.org/docs/2.0/mod/mod_deflate.html.
     68This method will work with all BOINC clients, but it will do compression only for 5.4+ clients.
     69
     70You can use this in conjunction with gzip encoding because the mod_deflate module
     71allows you to exempt certain filetypes from on-the-fly compression.
     72
     73This method increases CPU load on the web server, but this is typically not significant.
     74
     75You'll need to modify your `httpd.conf` file; example:
     76
     77{{{
     78# Enable module
     79LoadModule deflate_module modules/mod_deflate.so
     80
     81# Log file compression
     82DeflateFilterNote Input instream
     83DeflateFilterNote Output outstream
     84DeflateFilterNote Ratio ratio
     85
     86LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
     87CustomLog logs/deflate_log deflate
     88
     89# Use low settings for compression to make sure impact on server is low
     90DeflateMemLevel 2
     91DeflateCompressionLevel 2
     92}}}
     93
    9494
    9595=== Compression of output files === #compress-output