header image

Ryuzeeの他サイト

mixi Twitter Twitter

Categories

携帯対応

QRコード

RING

人気ブログランキング



新着記事

[root@sakae ~]# wget http://software.tangent.org/download/mod_layout-3.2.tar.gz

としてソースを取得する。筆者の環境はapache1.3.33だが、mod_layoutのバージョンが3.2.1だと動作しないので、3.2のソースを取得してきてコンパイルする。・

tar.gzを解凍したあと、Makefileを編集する。編集箇所は以下だ。
1)apxsのフルパスを記述
2)apachectlのフルパスを記述
3)Makefile中のapxsの箇所を$(APXS)に置き換え。

以上を行ったら

[root@sakae ~]# make
[root@sakae ~]# make install

で完了。

<directory "/var/www/html/help">
    Options Includes ExecCGI FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    LayoutMerge On
    LayoutHeader /tmp/header.html
    LayoutFooter /tmp/footer.html
</directory>

のようにhttpd.confに書くか、もしくはLayoutMerge以下の3行を.htaccessに記載して配置すれば良い。
結構便利だ。なんせapacheの出力プロセスをバイパスするので、PHPのインクルード等に比べて格段に性能が良い。

Ratings

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

“apache1.3でmod_layoutを使う”へのコメントはありません。

コメントはありません。是非コメントしてください。

コメントする

XHTML: 以下のタグが利用可能です: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback

 

add to hatena hatena.comment (0) add to del.icio.us (0) add to livedoor.clip (0) add to Yahoo!Bookmark (0) Total: 0