SSI(for Windows) : Apache
ApacheでSSIを利用するための覚書。 ドキュメントルートは下記のように設定してあると仮定。DocumentRoot "c:/Program Files/Apache Group/Apache2/htdocs"
拡張子shtmlの場合
httpd.confを下記のように修正。AddType text/html .shtml ← #を削除
AddOutputFilter INCLUDES .shtml ← #を削除
<Directory "c:/Program Files/Apache Group/Apache2/htdocs">
・・・・・・・・
Options IncludesNoExec
</Directory>
IncludeでもSSIは利用可能だが、セキュリティの安全を高めるためにIncludesNoExecが良い。
拡張子htmlの場合
#AddType text/html .shtml ← #を削除しない
AddOutputFilter INCLUDES .html ← #を削除し、shtmlをhtmlへ)
<Directory "c:/Program Files/Apache Group/Apache2/htdocs">
・・・・・・・・
Options IncludesNoExec
</Directory>
関連記事
- 関連記事は見つかりませんでした。
検索ボックスからの検索もお試しください。
コメント
コメントはまだありません。
コメントの投稿
改行と段落タグは自動で挿入されます。
メールアドレスは表示されません。
トラックバックURL
http://www.findxfine.com/server/apache/428.html/trackback