Apache Content-Type

FreeBSDportsからインストールしたApache22の場合、phpスクリプトでは、


HTTP/1.1 200 OK
Date: Mon, 01 Nov 2010 10:10:26 GMT
Server: Apache/2.2.13 (FreeBSD) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.2.11 with Suhosin-Patch
X-Powered-By: PHP/5.2.11
Content-Length: 1670
Connection: close
Content-Type: text/html
となるが、htmlファイルでは、

HTTP/1.1 200 OK
Date: Mon, 01 Nov 2010 10:27:22 GMT
Server: Apache/2.2.13 (FreeBSD) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.2.11 with Suhosin-Patch
Last-Modified: Mon, 01 Nov 2010 10:13:03 GMT
ETag: "9b6e022-483-493fb0db6c9c0"
Accept-Ranges: bytes
Content-Length: 1155
Connection: close
Content-Type: text/html; charset=iso-2022-jp
となるので、JISでない日本語を含むhtmlファイルは文字化けする、みたい。

phpスクリプトの場合は文字化けしないのでなぜだろうと思っていた。