Linux 備忘録

.html の拡張子でphp実行

phpは、通常.phpの拡張子に対してスクリプトを実行します。
それでは、何かと不都合なこともあるので、このサイトを参考にしてhttpd.conf を書き換えました。

AddType text/html .php
AddHandler php5-script .php
AddHandler php5-script .html

上記の内容を追加すると動作するようになりました。
これにより、どの程度apacheの負荷があがることになるのだろうか。

Leave a Comment

XHTML: Line-breaks are automatic. Available tags are <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> <img localsrc="" alt="">