How do I configure Apache2 to support HTTP compression?
|
feedback
|
|
This requires the Then, use
Or:
| |||||
feedback
|
|
As the Wikipedia entry you link to notes, you can use mod_deflate or mod_gzip. See here an example with mod_gzip, which is what I use. | |||
|
feedback
|
| |||
|
feedback
|
|
Depending on your deploy place this in your conf.d or extras folder as mod_deflate.conf:
Restart apache and mod_deflate will occur on all extensions not matching the regex above, this reduces the overall CPU overhead as it prevents mod_deflate from attempting to compress a format you will see little or no compression for (because it is already compressed). To see what exactly is being compressed, and the compression ratio, place this in your
| |||
|
feedback
|