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) |