AddType application/x-httpd-php .php .html</Directory># apache2 -k restart...">

Apache2 html拡張子でもphpを動かす

/ Web / Comment[0]
AddTypeでMIMEに対応する拡張子を追加すればおkです。

# vi /etc/apache2/httpd.conf
<Directory "/var/www">
AddType application/x-httpd-php .php .html
</Directory>

# apache2 -k restart
関連記事

コメント

:
:
:
:
:
管理人のみ表示を許可