How do I Enable Gzip compression in Dedicated Server ?
To Enable the Gzip compression in Dedicated Server, please follow the below procedure,
Step 1: Login to WHM Panel
Step 2: Edit Apache Configuration Pre VirtualHost
Home » Service Configuration » Apache Configuration » Include Editor
and edit Pre VirtualHost Include (All versions)
Step 3: Update Pre VirtualHost
Add the following settings in Pre VirtualHost editor and update it.
===================================================
# Insert filter
SetOutputFilter DEFLATE
# Netscape 4.x has some problems…
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# Don’t compress images
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don’t deliver the wrong content
Header append Vary User-Agent env=!dont-vary
=====================================================
Step 4: Restart Apache and Verify
After this , restart the webserver then check in the server domain whether it is enabled (or) not via the URL “checkgzipcompression.com”