SSIを動かす。

環境:FedoraCore6

#vi /etc/httpd/conf/httpd.conf

#Options Indexes FollowSymLinks
↓変更後
#コメントアウトする。
Options Indexes FollowSymLinks

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
↓変更後
AddType text/html .shtml .html .htm
AddOutputFilter INCLUDES .shtml .html .htm

SSIテスト動作用スクリプト

今日は
<!--#config timefmt="%a, %b %d, %Y" -->
<!--#echo var="DATE_LOCAL" -->
です。
カテゴリー: apache   パーマリンク

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

*

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>