Here's my test.cgi script which is inside my mod_perl directory (/home/httpd/perl/).Content-type:image/gif
And here's my httpd.conf settings.#!/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;
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.<IfModule mod_perl.c> Alias /perl/ /home/httpd/perl/ <Location /perl> SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI PerlSendHeader off </Location> </IfModule>
thanks monks,
james
p.s. i tried "PerlSendHeader off" and "PerlSendHeader Off"
In reply to mod_perl Content Header Output with PerlSendHeader off
by true
in thread Mod Perl Content Header Output
by Sarq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |