I am trying to enable Gzip Compression using .htaccess on a Centos 7.3 server.
This is my phpinfo file: [bluebamboo.com.ar/info.php
I read all this documents and posts:
varvy.com/pagespeed/enable-compression.html
digitalocean.com/community/tutorials/how-to-install-and-configure-mod_deflate-on-centos-7
stackoverflow.com/questions/12576841/gzip-compression-using-htaccess
stackoverflow.com/questions/20520314/enable-gzip-compression
httpd.apache.org/docs/2.2/mod/mod_deflate.html
I check gzip compression in this site: varvy.com/tools/gzip/
I try with this configuration in .htacces file but it doesn't work.
# Gzip compression varvy.com/pagespeed/enable-compression.html
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
--
# https://css-tricks.com/snippets/htaccess/active-gzip-compression/
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE "application/atom+xml" \
"application/javascript" \
"application/json" \
"application/ld+json" \
"application/manifest+json" \
"application/rdf+xml" \
"application/rss+xml" \
"application/schema+json" \
"application/vnd.geo+json" \
"application/vnd.ms-fontobject" \
"application/x-font-ttf" \
"application/x-javascript" \
"application/x-web-app-manifest+json" \
"application/xhtml+xml" \
"application/xml" \
"font/eot" \
"font/opentype" \
"image/bmp" \
"image/svg+xml" \
"image/vnd.microsoft.icon" \
"image/x-icon" \
"text/cache-manifest" \
"text/css" \
"text/html" \
"text/javascript" \
"text/plain" \
"text/vcard" \
"text/vnd.rim.location.xloc" \
"text/vtt" \
"text/x-component" \
"text/x-cross-domain-policy" \
"text/xml"
</IfModule>
Here is are my httpd.conf file:
bluebamboo.com.ar/httpd.txt
bluebamboo.com.ar/httpd2.txt
I tried to run commands like "apachectl -t -D DUMP_MODULES |grep deflate" but it does not function.
I really don't know where is the issue. Can you help me?
Thanks in advance.