How to enable HTTP Compression? In order to enable compression, you will need compression modules compiled with Apache. Apache 1.x needs mod_gzip and Apache 2.x need mod_deflate compiled with it.
If you have these module installed, you need to edit your Apache configuration file locate at “/etc/httpd/conf/httpd.conf” file and add the following lines to it:
<Location />
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
</Location>
Save the file and restart the httpd service. This will compress all the files except the .gif, .jpe, .jpeg and .png files.
Related URLs:
How to enable http compression on a Plesk server?
Tags: apache 1.x needs mod_gzip module, apache 2.x needs mod_deflate module, different compression modules avaiblae with apache, How to enable HTTP Compression?, SetEnvIfNoCase Request_URI, SetOutputFilter DEFLATE, what are compressions modules with apache?
