我的系统是ubuntu系统,现在配置好了cgi目录,而且在这个目录下面的CGI程序可以运行,可是其他的程序不能够运行了,比如HTML,php等。报500错误,查看日志是:
(8)Exec format error: exec of '/var/www/cgi/tt.html' failed
Premature end of script headers: tt.html
我的配置文件是:
  ScriptAlias /cgi-bin/ /var/www/cgi/
        <Directory "/var/www/cgi">
                AllowOverride All
                Options +ExecCGI       
                AddHandler cgi-script .cgi .pl
                Allow from all
        </Directory>