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;
然后在浏览器打开http://localhost/cgi/index.cgi
出现了如下错误
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
请问这是怎么了?
shoushuai 于 2008-08-26 14:17:53发表:
apache设置???