FedoraCoreへmod_layoutのインストールメモ
# yum -y install httpd-devel
# cd /usr/local/src/
# wget http://download.tangent.org/mod_layout-5.0.tar.gz
# tar xvzf mod_layout-5.0.tar.gz
# cd mod_layout-5.0
# make
# make install
+--------------------------------------------------------+
| All done. |
| |
| Thanks for installing mod_layout. |
+--------------------------------------------------------+
が出ればインストールOK。
httpd リスタート
# /etc/init.d/httpd restart
これで完了。
テストとして動作させたいディレクトリに
header.html
index.html
を置く。
index.htmlは適当なページ。header.htmlは挿入させたい文字列等・・・
で、.htaccessを置く。
.htaccessの中身
AddOutputFilter LAYOUT html
LayoutHeader /home/hoge/public_html/header.html
これで動くはず。メモ以上。
# yum -y install httpd-devel
# cd /usr/local/src/
# wget http://download.tangent.org/mod_layout-5.0.tar.gz
# tar xvzf mod_layout-5.0.tar.gz
# cd mod_layout-5.0
# make
# make install
+--------------------------------------------------------+
| All done. |
| |
| Thanks for installing mod_layout. |
+--------------------------------------------------------+
が出ればインストールOK。
httpd リスタート
# /etc/init.d/httpd restart
これで完了。
テストとして動作させたいディレクトリに
header.html
index.html
を置く。
index.htmlは適当なページ。header.htmlは挿入させたい文字列等・・・
で、.htaccessを置く。
.htaccessの中身
AddOutputFilter LAYOUT html
LayoutHeader /home/hoge/public_html/header.html
これで動くはず。メモ以上。