LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 693|回复: 0

[求助]为apache2添加deflate网页压缩功能

[复制链接]
发表于 2006-5-27 12:43:59 | 显示全部楼层 |阅读模式
环境:Debian Sarge。安装了apache2后,一切正常。现在要添加deflate功能。
激活mod_deflate
cd /etc/apache2/mods-enable
ln -s /etc/apache2/mods-avaiable/deflate.load deflate.load
ln -s /etc/apache2/mods-available/deflate.conf deflate.conf
编辑 deflate.conf
#cat deflate.conf
AddOutputFilterByType DEFLATE text/html text/plain text/xml
DeflateFilterNote Input input_info
DeflateFilterNote Output output_info
DeflateFilterNote Ratio ratio_info
LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
CustomLog /var/log/apache2/deflate_log deflate
重启apache2服务
/etc/init.d/apache2 restart

问题:当我访问了某html静态网页后,deflate_log 并没有任何记录。我的配置有问题吗?如何改正?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表