|
|
我在httpd.conf中做了如下修改:
1、AddHandler cgi-script .cgi .pl 去掉#,并添加 .cgi .pl
2、DirectoryIndex index.html index.html.var index.cgi
添加index.cgi
3、添加一个Alias:
Alias /bugzilla/ "/home/mhm/bugzilla-2.17.6/"
<Directory "/home/mhm/bugzilla-2.17.6/">
Options +ExecCGI
AllowOverride None
</Directory>
/home/mhm/bugzilla-2.17.6/下有index.cgi,我是在配置bugzilla系统。
按照这种方式我在一台Apache版本是1.3的机器上配置好了Bugzilla,
但在另一台Apache版本是2.0.40 的机器上配置后输入网址,总出现如下错误:
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: index.cgi
If you think this is a server error, please contact the webmaster
Error 500
162.105.××.××
Fri Apr 16 16:17:50 2004
Apache/2.0.40 (Red Hat Linux)
请大家解释解决办法,谢谢 |
|