How do I Enable Gzip compression in Dedicated Server ?

Linux Dedicated Server have the facility to enable the Gzip compression by adding some parameters in the proper place.  Gzip compression gives the better speed for website pages by compressing it.


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

Screen Shots

Refer Screen Shots

Troubleshooting FAQs

roubleshooting FAQs Not Available

How to restrict the site preview URL for the particular domain alone ?

Solution :

To restrict the site preview URL for the each domain login to the server WHM and go to the path,

Home » Security Center » Apache mod_userdir Tweak

Here you can able to see all hosted domains in your dedicated server. In this there is a column called ” Exclude Protection ” . check the check box for the particular domain to which you want to enable. Hence for that domain alone you can able to check the site preview with the IP address of the server.

Downloads

Related Downloads

Related Articles