malformed header from script. Bad header的解决方法

今天配置perl服务器出现如下错误:

Internal Server Error

The server encountered an internal error ormisconfiguration and was unable to completeyour request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred,and anything you might have done that may havecaused the error.

More information about this error may be availablein the server error log.


根据错误提示,打开apache错误日志,有如下提示:

[Thu Sep 15 10:18:48 2011] [error] [client 127.0.0.1] malformed header from script. Bad header=hello perl world,this is my fi: myfirst.pl
[Thu Sep 15 10:18:49 2011] [error] [client 127.0.0.1] malformed header from script. Bad header=hello perl world,this is my fi: myfirst.pl
[Thu Sep 15 10:18:56 2011] [error] [client 127.0.0.1] malformed header from script. Bad header=hello perl world,this is my fi: myfirst.pl

根据提示说明有header有问题,查看文件输出的第一句话是什么,应该类似于如下

Content-type: text/plain; charset=iso-8859-1\n\n

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值