Hi

Test.pl works fine:

print "Content-type: text/html\n\n";
print "Perl works\n"; 

Rock.pl it tries to download:

print "Content-type: text/plain\n\n";
print "Mod Perl 2 Rocks\n";

Both have same permissions:

-rwxrwxr-x  1 apachebi molbiol  65 Nov 20 14:47 rock.pl
-rwxrwxr-x  1 apachebi molbiol  59 Nov 20 14:47 test.pl

So I can't send text/plain using mod_perl?  That doesn't sound right....

Mick

-----Original Message-----
From: Tobias Regneri [mailto:[EMAIL PROTECTED] 
Sent: 20 November 2007 14:37
To: michael watson (IAH-C)
Cc: modperl@perl.apache.org
Subject: Re: Apache offers to download the perl script rather than
execute it!

Hi,

>         SetHandler perl-script

I think it's only a missing file type

SetHandler perl-script .pl

Hth,

Tobias

Reply via email to