t土疙瘩 发表于 2004-10-27 11:18:33

在使用mod_perl的时候出现了did not send

我的perl.conf的配置如下:
LoadModule perl_module modules/mod_perl.so
Alias /perl /var/www/perl
<Directory /var/www/perl>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Directory>
所写的perl脚本:hello.pl

#!/usr/bin/perl
print <<EOF;
Hello World.
EOF

启动httpd后,用浏览器打开所写的脚本,显示如下错误:Internal Server Error
察看error_log,显示如下错误信息:
malformed header from script. Bad header=Hello World.: hello.pl
/perl/hello.pl did not send an HTTP header
请问这是什么原因?
页: [1]
查看完整版本: 在使用mod_perl的时候出现了did not send