Title: GZIP compression problem
Last modified: April 2, 2020

---

# GZIP compression problem

 *  Resolved [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gzip-compression-problem/)
 * Hello,
    I am running WordPress in Docker with an Apache server. I installed WP-
   Optimize on two very similar instances but the more developed one in terms of
   content (here: [https://bit.ly/3dH5yut](https://bit.ly/3dH5yut)) crashes every
   time I try to enable Gzip compression. The only solution then is to undo the 
   changes to the .htaccess file.
 * The more vanilla installation says Gzip is enable by deafult.
 * What could be going wrong?
    Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgzip-compression-problem%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gzip-compression-problem/#post-12616277)
 * To clarify, the error is this:
 * >  We successfully added Gzip compression settings into .htaccess file. However,
   > the test file we fetched was not Gzip-compressed. Possible causes include that
   > Apache (your webserver) is not configured to allow .htaccess files to take 
   > effect, or one of Apache modules – mod_filter or mod_deflate – is not active,
   > or the webserver is configured to disallow Gzip compression. You should speak
   > to your web hosting support to find how to enable it.
    -  This reply was modified 6 years, 2 months ago by [psodfj](https://wordpress.org/support/users/psodfj/).
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gzip-compression-problem/#post-12617317)
 * It turned out I just had to pass `proxy_set_header Accept-Encoding "gzip";` to
   the nginx reverse proxy.
    All working now!
    -  This reply was modified 6 years, 2 months ago by [psodfj](https://wordpress.org/support/users/psodfj/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘GZIP compression problem’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

 * [compression](https://wordpress.org/support/topic-tag/compression/)
 * [gzip](https://wordpress.org/support/topic-tag/gzip/)

 * 2 replies
 * 1 participant
 * Last reply from: [psodfj](https://wordpress.org/support/users/psodfj/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/gzip-compression-problem/#post-12617317)
 * Status: resolved