找回密码
 注册
查看: 806|回复: 1

[求助]apache2中deflate网页压缩的解决方案

[复制链接]
发表于 2006-5-27 12:38: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 并没有任何记录。我的配置有问题吗?如何改正?
 楼主| 发表于 2006-5-30 08:23:29 | 显示全部楼层
顶起来,请配置过apache2 mod_deflate的老师指点一下,先谢了!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-15 11:11 , Processed in 0.023627 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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