Apache上使用mod_deflate压缩网页输出

Posted by eDWARD at 17:06

    配置mod_deflate模块

  1. 因为我已经安装了mod_deflate模块,所以现在只需要配置apache的httpd.conf文件就可以了,就可以把css,javascript,html压缩70%左右。

    或者把SetEnvIfNoCase替换成

    不管哪种方法都是为了把某些不需要压缩的文件排出,这样被压缩过的网页就会比没有压缩的网页小很多,传输速度也会变快,就是说打开网页会快一些。

  2. 感谢大黄的提醒,虽然在编译Apache的时候编译过这个模块,但当时还不知道是做什么用的……现在可以给网页提速了,果然是个好东东。

Sphere: Related Content

Filed In 学习路上 | Study | Tags: |

Your Comments.

Leave your own response

Leave a Reply.

Comment Form.

Fields denoted with a "*" are required. Your comment may require moderation, please be patient.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>




Your Reply.

Use the following link to trackback from your own site:
http://www.zhangzhang.net/articles/2006/09/15/apache-mod_deflate/trackback/

Spread the word.

Octopus supports RSS feed for this post RSS 2.0 , and Trackbacks from other blogs.

Technorati

  品位不凡,威严,略显高深,喜爱一切美丽的事物,易怒,固执,有些利己,但关心接近他的人。谦逊,但非常有野心,有才能,刻苦,是不甚令人满意的伴侣,朋友众多,树敌也多,是可以信赖的人。


bloglines
google reader
my yahoo
订阅我的博客