I have a Centos 7 installation with apache / httpd running.
I have some large .html
and .txt
documents which it serves.
How do I enable gzip
compression with DEFLATE
?
DEFLATE
is present.
apachectl -t -D DUMP_MODULES |grep deflate
deflate_module (shared)
I added this to /etc/httpd/conf/httpd.conf
:
<filesMatch "\.(js|html|css|txt)$">
SetOutputFilter DEFLATE
</filesMatch>
Then restarted the server with:
systemctl restart httpd
This still indicates it's not enabled: http://www.whatsmyip.org/http-compression-test/