How do I activate http compression?

I'm running a CentOS web server and also I intend to conserve transmission capacity, make web pages much faster, all that. Just how can I activate http compression? Is it a component I enable for all websites? Can it be that straightforward?

2019-05-18 22:34:12
Source Share
Answers: 1

Use mod_deflate.

Add this to your apache config:

LoadModule deflate_module /usr/lib/apache2/modules/
<Location />
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css

Obviously if the course your system makes use of for apache components varies after that you'll require to make use of the proper course.

2019-05-21 08:43:44