Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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>
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.