I set the PerlSendHeader to 'off' in my httpd.conf configuration but i am still getting a content-type header printed out by apache. Under mod_perl this test script outputs to my browser the following:
Content-type:image/gif
Here's my test.cgi script which is inside my mod_perl directory (/home/httpd/perl/).
#!/usr/bin/perl -w
use strict;
if ($ENV{'MOD_PERL'}){
print "Content-type:image/gif\n\n";
#my image output will go here
}else{
print "Content-type:text/html\n\n";
print "MOD_PERL is off";
}
exit;
And here's my httpd.conf settings.
<IfModule mod_perl.c>
Alias /perl/ /home/httpd/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
PerlSendHeader off
</Location>
</IfModule>
I restarted apache and did a killall -HUP apache.
As you can see by the output of the script, mod_perl is working. I'm running mod_perl/1.23.
Anybody have any ideas on how i can fix this?
I'd like to be able to output more than just text/html files with mod_perl.
thanks monks,
james
p.s. i tried "PerlSendHeader off" and "PerlSendHeader Off" |