How can I disable mod_deflate in Apache2
- For files in a specific directory
OR
- For all files that have extension of, for example .py?
How can I disable mod_deflate in Apache2
OR
On
Quote from: scottlinux.com
Disable Compression: To disable compression in Apache, typically you just need to disable the module mod_deflate...
Debian/Ubuntu:
$ sudo a2dismod deflate
Module deflate disabled.
Run '/etc/init.d/apache2 restart' to activate new configuration!
$ sudo /etc/init.d/apache2 restart
You could set the environment variable no-gzip for that directory/type of file: