|
|
|
|
| 在使用mod_perl的时候出现了did not send an HTTP header |
 在使用mod_perl的时候出现了did not send an HTTP header - indium [ 2004-10-27 11:14 | 884 byte(s)]
 Re: 在使用mod_perl的时候出现了did not send an HTTP header - ACp [ 2004-10-27 14:05 | 188 byte(s)]
 Re: 在使用mod_perl的时候出现了did not send an HTTP header - indium [ 2004-10-27 14:16 | 82 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
我的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,显示如下错误信息:
[Wed Oct 27 09:59:02 2004] [error] [client 192.168.112.88] malformed header from script. Bad header=Hello World.: hello.pl
[Wed Oct 27 09:59:02 2004] [warn] /perl/hello.pl did not send an HTTP header
请问这是什么原因?
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
#!/usr/bin/perl
print "Content-type: text/html
";
print <<EOF;
Hello World.
EOF
|
|
|
----
计算机组成?
|
|
[Original]
[Print]
[Top]
|
|
|