用apache2执行CGI的问题

通一 2003-01-26 11:16:42
打开localhost/cgi-bin/22.cgi时
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, xiao@1.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


--------------------------------------------------------------------------------

Apache/2.0.43 Server at localhost Port 80

在logs/error_log中
Premature end of script headers: 22.cgi



什么原因????
...全文
53 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
tsingson 2003-01-28
  • 打赏
  • 举报
回复
请把你的 22.cgi 的前 20 行发来吧,给你看看



欢迎访问 perlchina.net
AL_lew 2003-01-27
  • 打赏
  • 举报
回复
你的CGI代码写的有问题,使得浏览器不能对“头”正确解析

比如说,就是你的
<head><title><script>
</title></script>

等等,这些不匹配,不正确,都可能导致你的CGI无法正确输出

2,203

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 CGI
社区管理员
  • CGI社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧