・Apache moduleのphpを.htmlで動かす場合:
<IfModule mod_php5.c> AddHandler php5-script .php .html .htm AddType text/html .php .html .htm </IfModule>
・FastCGIのphpを.htmlで動かす場合:
<IfModule mod_fcgid.c>
<Files ~ (\.html)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
allow from all
</Files>
</IfModule>
・CGIのphpを.htmlで動かす場合:
<Files ~ (\.html)> SetHandler None AddHandler php-script .html Options +ExecCGI allow from all </Files>
上記を、適宜.htaccess or vhost.confに書く
vhost.confの場合は
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
とする。







この記事へのコメントはありません。