Chinaunix首页 | 论坛 | 博客
  • 博客访问: 263078
  • 博文数量: 9
  • 博客积分: 2530
  • 博客等级: 少校
  • 技术积分: 565
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 21:29
文章分类

全部博文(9)

文章存档

2011年(3)

2009年(3)

2008年(3)

我的朋友

分类: LINUX

2008-04-09 14:56:54

lighttpd 1.4.x 需要打补丁才会支持 mod_deflate , 而 1.5 版默认支持 mod_deflate ,现把 lighttpd 1.5 -svn1992 的配置过程记录如下:
 
./configure --prefix=/usr/local/lighttpd1.5 --with-memcache --with-bzip2 --disable-ipv6 --with-valgrind
make
make install
 
#加入mod_delflate
vi /usr/local/lighttpd/lighttpd.conf加入
  server.modules              = (           
                                      "mod_deflate"
                                 .....
                                )
deflate.enabled = "enable"
deflate.compression-level = 9
deflate.mem-level = 9
deflate.window-size = 15
# deflate.bzip2 only in patch for 1.4.x
deflate.bzip2 = "enable"
# deflate.allowed_encodings only in 1.5.x
deflate.allowed_encodings = ( "bzip2", "gzip", "deflate" )
deflate.min-compress-size = 200
#deflate.sync-flush = "enable"
#deflate.output-buffer-size = 8192
deflate.work-block-size = 512
deflate.mimetypes = ("text/html", "text/plain", "text/css", "text/javascript", "text/xml")
#deflate.debug = "enable"
 
 
 
 
阅读(1991) | 评论(0) | 转发(0) |
0

上一篇:mysql单向复制

下一篇:pured-ftpd 配置

给主人留下些什么吧!~~