[CentOS] Apache Compression

Fri Sep 22 22:26:14 UTC 2017
Frank Cox <theatre at sasktel.net>

On Fri, 22 Sep 2017 16:41:51 -0500
Matt wrote:

> I have a centos 7 install with apache running.  How do I get apache to
> use gzip compression on html and text based content?

I don't know how definitive it is, but this is what I use here:

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE image/x-icon
DeflateCompressionLevel 9
</IfModule> 

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com