PHP4をCGIモードで動かした際にSSIからPHPをコールするとエラーになる

# vi /etc/apache2/sites-available/001-tama
<VirtualHost *:80>
  ServerName tama.lo
  ServerAdmin tama@exsample.com

  DocumentRoot /home/tama/public_html/
  ErrorLog /home/tama/log/error.log

  LogLevel warn

  customlog /home/tama/log/access.log combined

  ScriptAlias /cgi-bin/ "/home/tama/cgi-bin/"
  AddHandler php4-script .php
  Action php4-script /cgi-bin/php

</VirtualHost>
$ vi /home/tama/public_html/.htaccess
Options Includes FollowSymLinks ExecCGI
AddHandler server-parsed .html

FireFoxで見ると、Content-Encoding に問題あるとでた。
「内容符号化 (Content-Encoding) に問題があります。」

telnet を試すとヘッダーにContent-Encodingがない。

$ telnet tama.lo 80
GET /test.html HTTP/1.0
Host: tama.lo

.htaccessに「SetEnv no-gzip」を追記すると直った。

$ vi /home/tama/public_html/.htaccess
SetEnv no-gzip
Options Includes FollowSymLinks ExecCGI
AddHandler server-parsed .html