Category: Apache

How to enable GZip Compression on Apache at root/global level:

Add the following to the bottom of the /etc/httpd/conf/httpd.conf

#
# Deflate output configuration
#
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript 
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678 no-gzip
BrowserMatch bMSIE no-gzip gzip-only-text/html

Tags:

Apache

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count: