无法在 apache 2.2.15 中启用 Gzip-compression
Can't Enable Gzip-compression in apache 2.2.15
我知道很多人都问过这个问题,但是相信我,这不是重复的 ;)
我有一台安装了 Apache 2.2.15 的 Linux 服务器 (CentOS 6.4)。
我有什么?
我在 /etc/httpd/conf/httpd.conf 中有这一行:
LoadModule deflate_module modules/mod_deflate.so
我的 .htaccess 文件中有这一行:
设置输出过滤器放气
我也尝试了在 .htaccess 中启用 mod_deflate 的其他版本。
这是我的 phpinfo()
屏幕截图:
但是我的回复中没有这个header:
Content-Encoding : gzip
有什么想法吗?
查看 httpd.conf
,确保你有
<Directory /PATH/TO/YOUR/APP>
AllowOverride All
</Directory>
我知道很多人都问过这个问题,但是相信我,这不是重复的 ;)
我有一台安装了 Apache 2.2.15 的 Linux 服务器 (CentOS 6.4)。
我有什么?
我在 /etc/httpd/conf/httpd.conf 中有这一行:
LoadModule deflate_module modules/mod_deflate.so
我的 .htaccess 文件中有这一行:
设置输出过滤器放气
我也尝试了在 .htaccess 中启用 mod_deflate 的其他版本。
这是我的 phpinfo()
屏幕截图:
但是我的回复中没有这个header:
Content-Encoding : gzip
有什么想法吗?
查看 httpd.conf
,确保你有
<Directory /PATH/TO/YOUR/APP>
AllowOverride All
</Directory>