# How to enable mod\_deflate in apache

**URL:** <https://community.localwp.com/t/how-to-enable-mod-deflate-in-apache/1162>\
**Category:** Support\
**Created:** [April 2, 2017, 10:58am UTC](https://community.localwp.com/t/how-to-enable-mod-deflate-in-apache/1162 "2017-04-02T10:58:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjaved87](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sjaved87/32/4637_2.png) [@sjaved87](https://community.localwp.com/u/sjaved87)\
**Post date:** [April 2, 2017, 10:58am UTC](https://community.localwp.com/t/how-to-enable-mod-deflate-in-apache/1162/1 "2017-04-02T10:58:35Z")

</div>

Hi 🙂

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 😕

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:

> **[Enabling gzip within nginx?](https://community.localwp.com/t/enabling-gzip-within-nginx/855/3)**
>
> I was trying to do the same thing but could not enable it. Just wondering is it still not added ? I am on Version 1.4.2 (1.4.2).

Discussed in [this ticket](http://local.getflywheel.com/community/t/enabling-gzip-within-nginx/855).

Looking forward towards your response 🙂

Sajid

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:31pm UTC](https://community.localwp.com/t/how-to-enable-mod-deflate-in-apache/1162/2 "2020-08-25T18:31:43Z")

</div>

Closed on August 25, 2020, 6:31pm UTC


