« マイナーチェンジ | メイン | Mac::Growlで2chの更新スレッドを通知する »

FreeBSD6.0 + Apache2.2にmod_layout5.1をいれてみる

Apache2.2に対応したmod_layoutはportsにないみたいなのでソースから。

# wget http://download.tangent.org/mod_layout-5.1.tar.gz
# tar zxvf mod_layout-5.1.tar.gz
# cd mod_layout-5.1
# make
# make install
# vim /usr/local/etc/apache22/httpd.conf

<Virtualhost www.geek.com>
     AddOutputFilterByType LAYOUT text/html
     LayoutFooter "<P> This is the tail end of things</P>"
     LayoutHeader "<P> This is the beginning of things</P>"
     LayoutIgnoreURI */mt.cgi
</virtualhost>

# apachectl configtest
# apachectl restart

なぜかMTの管理画面を破壊してくれるのでmt.cgiを除外指定しました。微妙なモジュールなのかも。。。

参考

  • http://tangent.org/362/mod_layout.html
  • http://d.hatena.ne.jp/peppon/20070502/1178110782
  • http://httpd.apache.org/docs/2.2/ja/mod/mod_mime.html#addoutputfilter

コメントを投稿

About

2008年03月19日 21:54に投稿されたエントリーのページです。

ひとつ前の投稿は「マイナーチェンジ」です。

次の投稿は「Mac::Growlで2chの更新スレッドを通知する」です。

他にも多くのエントリーがあります。メインページアーカイブページも見てください。