- 2010-12-03 (金) 12:38
- Linux
昨日のつづき。
動的なコンテンツを apache で処理して、静的なコンテンツは別ポートで立ち上げる apache に mod_rewrite を使って渡そうと思いましたが、それならば軽量のWebサーバのほうがいいなと思いまして、静的コンテンツのほうのWebサーバは lighttpd にしてみました。
結果結構パフォーマンスが改善されたような気がします。
簡単に覚書。
から、lighttpd-1.4.28.tar.gz をダウンロード
# tar xzvf lighttpd-1.4.28.tar.gz
# cd lighttpd-1.4.28
# ./configure
# make
# make test
# make install
これで、、/usr/local/sbin/lighttpd にインストールされる。
lighttpd-1.4.28のdocディレクトリにある doc/config/lighttpd.conf を編集して
/usr/local/etc に保存する。
他の doc/config 内のファイルも /usr/local/etc に保存する。
読み込むモジュールとかは、
/usr/local/etc/modules.conf で設定
doc/initscripts/rc.lighttpd.redhat は、
ファイル内の lighttpd.conf のパスを変更して /etc/init.d/lighttpd に保存する。
ログのローテートに関しては、
/etc/logrotate.d/lighttpd
に書いておく
- Newer: 本日は、一括エディ太Jr.を続けざまに購入いただきました
- Older: mod_proxyを活用してみる
コメント:0
トラックバック:0
- このエントリーのトラックバックURL
- http://blog.tanaka-cs.com/linux/p/261/trackback
- Listed below are links to weblogs that reference
- mod_proxyを活用してみる2 from # えびログ