如何禁用apache2的mod_deflate模块? [英] How to disable mod_deflate in apache2?
本文介绍了如何禁用apache2的mod_deflate模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能的Apache2禁用mod_deflate模块
How can I disable mod_deflate in Apache2
- 有关文件在一个特定的目录
或
- 对于具有的扩展名的文件,例如的.py?
推荐答案
You could set the environment variable no-gzip for that directory/type of file:
# 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>
这篇关于如何禁用apache2的mod_deflate模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文