end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

apache httpd 2.4 で、UTF-8以外のhtmlをサーブする

どうやら、apache 2.4 では、デフォルトで

Content-Type text/html; charset=utf-8

文字コード(encoding)付のヘッダを返すらしい。

なので、これを off るには、httpd.conf にて以下のようにすると、よさそう。

AddDefaultCharset off
#AddDefaultCharset UTF-8

<FilesMatch "\.html$">
  Header set Content-Type 'text/html;'
</FilesMatch>