Chinaunix首页 | 论坛 | 博客
  • 博客访问: 308563
  • 博文数量: 321
  • 博客积分: 10055
  • 博客等级: 上将
  • 技术积分: 3780
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-29 13:03
文章分类

全部博文(321)

文章存档

2012年(1)

2010年(7)

2009年(1)

2008年(312)

我的朋友

分类: LINUX

2008-09-21 10:44:49

我把/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) |
给主人留下些什么吧!~~