如何禁用每个虚拟主机或每个目录的Apache压缩? 这是通过修改http.conf文件,.htaccess文件或其他东西来完成的吗?
这个问题在stackoverflow可能会帮助你。
我举出:
# 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>
所以你可以尝试像这样:
<Directory /home/user/www> SetEnv no-gzip 1 [...] </Directory>