[英]Can't Enable Gzip-compression in apache 2.2.15
I know this has been asked a lot, but, believe me, is not duplicate ;) 我知道这个问题已经问了很多,但是,相信我,这不是重复的;)
I have a Linux server ( CentOS 6.4 ) with Apache 2.2.15 Installed. 我有一个安装了Apache 2.2.15的Linux服务器( CentOS 6.4 )。
What do I have? 我有什么?
I have this line in / etc/httpd/conf/httpd.conf : 我在/etc/httpd/conf/httpd.conf中有这行:
LoadModule deflate_module modules/mod_deflate.so LoadModule deflate_module modules / mod_deflate.so
I have this line in my .htaccess file : 我的.htaccess文件中有以下行:
SetOutputFilter DEFLATE SetOutputFilter DEFLATE
And I tried the other versions of enabling mod_deflate in .htaccess , too. 我也尝试了在.htaccess中启用mod_deflate的其他版本。
And this is my phpinfo()
screenshot : 这是我的phpinfo()
屏幕截图:
But there is not this header in my response : 但是我的响应中没有此标头:
Content-Encoding : gzip
Any Idea? 任何想法?
Look at httpd.conf
, Make sure you have 查看httpd.conf
,确保您拥有
<Directory /PATH/TO/YOUR/APP>
AllowOverride All
</Directory>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.