How do I Enable Gzip compression in Dedicated Server ?
Share This Now: [addtoany]
Watch Reseller Hosting Video Tutorial
Procedure
Enabling Gzip compression In Dedicated Server
To Enable the Gzip compression in Dedicated Server, please follow the below procedure,
1. Login to WHM Panel
2. Edit Apache Configuration Pre VirtualHost
Home » Service Configuration » Apache Configuration » Include Editor
and edit Pre VirtualHost Include (All versions)
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
=====================================================
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”