How to enable mod_deflate in apache

Hi :slight_smile:

I am trying to enable gzip compression on apache (the NGNX did not worked for me). But when I try to do that, I got an error that mod_deflate is not enabled.

To enable it manually, the plugin suggests following steps but I can not find vhosts.conf or httpd.conf files :confused:

  1. Copy the generated code into your .htaccess file
  2. If .htaccess does not work, and you have access to vhosts.conf or httpd.conf try this:
  3. Look for your site in the file and find the line that starts with - add the code above into that section and save the file.
  4. Reload Apache.

I also tried with NGIX but that did not worked either. It most likely because of reason mentioned here:

Discussed in this ticket.

Looking forward towards your response :slight_smile:

Sajid