1

How do I disable Apache compression per virtual host or per directory? Is this done through a modification to the http.conf file, a .htaccess file or something else?

cappuccino
  • 259
  • 1
  • 4
  • 9

1 Answers1

4

This question on stackoverflow will probably help you.

I cite:

# for URL paths that begin with "/foo/bar/"
SetEnvIf Request_URI ^/foo/bar/ no-gzip=1

# for files that end with ".py"
<FilesMatch \.py$>
    SetEnv no-gzip 1
</FilesMatch>

So you can try something like:

<Directory /home/user/www>
    SetEnv no-gzip 1
[...]
</Directory>
Weboide
  • 3,345
  • 1
  • 25
  • 33