title: Not able to enable mod_deflate on Apache / CentOS7
body: <p>I followed a simple tutorial from a good source, and gzip compression does not work. </p>
  
  <p>1) I run the following to see whether mod_deflate is already installed: </p>
  
  <pre><code>apachectl -t -D DUMP_MODULES | grep deflate
  </code></pre>
  
  <p>I got deflate_module (shared), so it was there. </p>
  
  <p>2) I created a new file /etc/httpd/conf.d/mod_deflate.conf with the following contents: </p>
  
  <pre><code>&lt;filesMatch "\.(js|html|css)$"&gt;
  SetOutputFilter DEFLATE
  &lt;/filesMatch&gt;
  </code></pre>
  
  <p>I saved it and I run systemctl reload httpd.service. It did not work so I run systemctl restart httpd.service. Gzip compression still didn't work. </p>
  
  <p>I checked the syntax of Apache config files with apachectl -t, and everything seems ok to. It still does not work. </p>
  
  <p>What could be the reason of this? What would I check? </p>
  
  <p>Thanks. </p>