我把/etc/httpd/conf/httpd.conf下
的AddHandler cgi-script .cgi这行注释去掉了
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
这里是这样做的
执行 chmod a+x /var/www/html/cgi/index.cgi
index.cgi上是这样写的
#!/usr/bin/perl
print"Conten-type;text/plain\n\n";
print"Hello,World!\n";
exit;
然后在浏览器打开
出现了如下错误
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
错误日志里是这样写的
[error][client 127.0.0.1]malformed header from script.Bad header=Content-type;text/plain;index.cgi
请问这是怎么了?
阅读(271) | 评论(0) | 转发(0) |