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 | {{{ |
| 65 | ==== Apache mod_deflate ==== |
| 66 | You can use the Apache 2.0 mod_deflate module to automatically compress files on the fly. |
| 67 | See http://httpd.apache.org/docs/2.0/mod/mod_deflate.html. |
| 68 | This method will work with all BOINC clients, but it will do compression only for 5.4+ clients. |
| 69 | |
| 70 | You can use this in conjunction with gzip encoding because the mod_deflate module |
| 71 | allows you to exempt certain filetypes from on-the-fly compression. |
| 72 | |
| 73 | This method increases CPU load on the web server, but this is typically not significant. |
| 74 | |
| 75 | You'll need to modify your `httpd.conf` file; example: |
| 76 | |
| 77 | {{{ |
| 78 | # Enable module |
| 79 | LoadModule deflate_module modules/mod_deflate.so |
| 80 | |
| 81 | # Log file compression |
| 82 | DeflateFilterNote Input instream |
| 83 | DeflateFilterNote Output outstream |
| 84 | DeflateFilterNote Ratio ratio |
| 85 | |
| 86 | LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate |
| 87 | CustomLog logs/deflate_log deflate |
| 88 | |
| 89 | # Use low settings for compression to make sure impact on server is low |
| 90 | DeflateMemLevel 2 |
| 91 | DeflateCompressionLevel 2 |
| 92 | }}} |
| 93 | |