はじめての自宅サーバ構築 - Fedora/CentOS - Last Update 2008/07/25
It opened to 2004/09/19.
当サイトはFedora9で運用しています
Visitors
Pageviews
Today(IP/PV)
3,374,119
12,762,111
1,277/8,733

■ TIPS集『Webサーバ(Apache)』

 SSIを利用可能にするには?

apacheの設定ファイル「/etc/httpd/conf/httpd.conf」の以下の行を追加・修正します。

# vi /etc/httpd/conf/httpd.conf
拡張子(shtml)をSSI実行可能とする
AddHandler server-parsed .shtml

同設定ファイル内で、SSIを実行させたいパスに「Includes」を指定します。
以下、例)ドキュメントルートでSSIを実行可能にする場合
<Directory "/var/www/html">
  Options Includes
</Directory>


修正した後は、apacheを再起動してください。
# /etc/rc.d/init.d/httpd reload
ページ先頭へ

Copyright(©)2004-2008 First home server construction. All Right Reserved.