AddHandler/AddType: 特定の拡張子に特定の動作をさせる設定。
AddType application/x-httpd-php .php AddHandler cgi-script .cgi
例えばこう設定している場合、index.cgi をrenameして index.cgi.yyyymmdd などとしていてもcgiとして動作した。
index.php をindex.php.yyyymmdd とした場合はtext/plain になった。(ソースコードが表示される)
おや?と思ったので、試しにindex.php をindex.php.cgi、index.cgi.php 両方の名前にコピーしてみたけど、
どちらもcgiとして動作した。うーん。謎。
AddHandler cgi-script .cgi AddHandler php5-script .php
cgi,phpともにAddHandlerで設定した場合、index.cgi.php はphpとして動作した。(最後についている本当の拡張子が動作する?)