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