• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

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 genki on Sun 13 Jan 2008 at 07:43 with 0 comments