Apache2 and mod_perl
I have an perl script for my website that just sends all the data to stdout where Apache picks it up and transmits it to the client. My script generates it's own headers and all apache needs to do is send them to the client.
In Apache 1.3 I used Apache::Registry and all was good.
For Apache 2.0 I followed the guide and changed Apache::Registry to ModPerl::Registry and set PerlOptions +ParseHeaders
Except now I keep getting Internal Server Errors
Error log:
[Sun Oct 05 14:24:36 2003] [error] [client 127.0.0.1] malformed header from script. Bad header=HTTP/1.1 200 OK: index.pl
[Sun Oct 05 14:24:36 2003] [warn] /index.pl did not send an HTTP header
Perl section of apache2 config file:
AddHandler perl-script pl
PerlModule ModPerl::Registry
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders +SetupEnv
<Files *.pl>
Options +ExecCGI
</Files>
Why is Apache2 claiming that my headers are bad?
--
"All he'd wanted were the same answers the rest of us want. Where did I come from? Where am I going? How long have I got?" -- Deckard