How to disable gzip function for specific domain

Created:

2016-12-12 03:41:40 UTC

Modified:

2017-08-08 13:31:42 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to disable gzip function for specific domain

Applicable to:

  • Plesk 12.5 for Linux

Question

How to disable gzip function of apache mod_deflate for domain example.com without disabling module globally?

Answer

Create .htaccess file in /var/www/vhosts/example.com/httpdocs directory with the following content:

SetEnv no-gzip 1

To check if compression is disabled use the following command:

# curl -I -H 'Accept-Encoding: gzip,deflate' http://example.com | grep "Content-Encoding"
Have more questions? Submit a request
Please sign in to leave a comment.