13th Sun
lighttpd-1.4.8でmod_deflateを使う
lighttpd-1.5.xから導入される予定のmod_deflateは、
static/dynamicを問わず、レンダリング出力を
圧縮してくれる便利なモジュールですが、
残念ながらlighttpd-1.4.x系では使うことができません。
しかし、非常に便利な機能なので、1.5.x系から
バックポートするための様々な試みがなされています。
今回は、lighttpd-1.4.8にパッチを当てて
mod_deflateを使う方法を紹介します。
以下のようにlighttpd-1.4.8のソースと、パッチを
ダウンロードし、パッチを適用します。
shell>>
cd /usr/local/src
wget http://www.lighttpd.net/download/lighttpd-1.4.18.tar.bz2
tar xvjf lighttpd-1.4.18.tar.bz2
cd lighttpd-1.4.18
curl http://poocs.net/files/lighttpd-1.4.18.mod_deflate.scoop.patch.gz | gzip -d | patch -p1
<<--
あとは、通常通りソースからインストールすれば完了です。
shell>>
./configure --with-bzip2
~ (snip) ~
enabled:
auth-crypt
compress-bzip2
compress-deflate
~ (snip) ~
make
make install
<<--
mod_deflateの使い方は、こちらのサイトをご覧ください。
posted by
genki on Sun 13 Jan 2008 at 07:43 with 0 comments