How To Enable Gzip Compression on Apache

r00t March 7, 2015

Apache-logo

For those of you who didn’t know, Apache’s mod_deflate is an Apache module that will compress output from your server before it is sent to the client. If you have newer version of Apache the mod_deflate module is probably loaded by default, but it may not be turned on. This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. In this post, I will talk about an easy way to enable gzip compression on apache web servers. It’s really not that difficult, Let’s start.

Step 1. First verify that the module is loaded in your httpd.conf file.

Your current version of Apache may already have enabled this module for you, but you may still want to be sure. To enable this module, add the following line (if it does not exist) in Apache configuration file.

Step 2. Configure httpd.conf file.

Open httpd.conf file using a text editor and place the following in it:

Step 3. Restart Apache and Verify.

You can use this link to verify your server gzip using one of domain configured on server.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer” installation, starting from $10 (Paypal payment). Please contact us to get a best deal!
Share on Google+0Share on Facebook0Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon1Share on Reddit1Pin on Pinterest1
The Tags:

Leave a Comment