RoundCube + Apache 2.2.9 以降

RoundCubeを動作させていたサーバを以降したところ、Internal Server Errorがでて接続できなくなってしまいました。

エラーは次のような感じで出力されていました。

[alert] [client xxx.xxx.xxx.xxx] /var/www/roundcubemail-0.3.1/.htaccess: first argument must be 'add', 'set', 'append', 'unset', 'echo' or 'edit'.

モジュールが足りないのか、SELinuxの設定が悪いのか、いろいろと確認したのですが、解決しません。おかしいなぁとおもって、.htaccessファイルを開いてみたところ、答えがありました。

<IfModule mod_headers.c>
# replace 'append' with 'merge' for Apache version 2.2.9 and later
#Header append Cache-Control public env=!NO_CACHE
Header merge Cache-Control public env=!NO_CACHE
</IfModule>

Apache 2.2.9以降はこちらに変更しろということでした。気づいてよかった。

<IfModule mod_headers.c>
# replace 'append' with 'merge' for Apache version 2.2.9 and later
Header append Cache-Control public env=!NO_CACHE
#Header merge Cache-Control public env=!NO_CACHE
</IfModule>
同じカテゴリの記事: Linux