Re: Debian Sarge mod_perl Apache 1.3



On Tue, 19 Jul 2005 22:51:58 +0200, Debian User wrote:
> Hi,
> I try to set up apache and mod_perl, I added the location tag in
> httpd.conf and all that comes with it but when I try the URI of a pl file,
> my browser ask me if I want to save it: apache seems to not recognize the
> pl file as a perl script...

Well, this is from my httpd.conf (sarge, apache 1.3). Uses mod-perl
for anything in /mod-perl and any other files ending in .pl
LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so

<IfModule mod_alias.c>
Alias /mod-perl/ /home/httpd/mod-perl/
</IfModule>
<Location /mod-perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Location>
<FilesMatch "\.pl$">
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</FilesMatch>


--
Stephen Patterson steve@xxxxxxxxxxxxxx http://patter.mine.nu/ GPG: E3E8E974
Jabber: patter on jabber.earth.li MSN: stephenpatterson893@xxxxxxxxxxx
"Whoever said nothing is impossible never tried slamming a revolving door."
-- Melissa O'Brien
.



Relevant Pages

  • Re: Debian Sarge mod_perl Apache 1.3
    ... >> my browser ask me if I want to save it: apache seems to not recognize the ... > SetHandler perl-script ... > PerlHandler Apache::Registry ... > Options +ExecCGI ...
    (comp.lang.perl.modules)
  • Re: Debian Sarge mod_perl Apache 1.3
    ... I move the part concerning Perl to another part of the httpd.conf ... >> my browser ask me if I want to save it: apache seems to not recognize the ... > PerlHandler Apache::Registry ... > Options +ExecCGI ...
    (comp.lang.perl.modules)
  • mod_perl / Apache problem
    ... SetHandler perl-script ... The same script works fine in /cgi-bin/. ... My environment variables and server signature indicate the mod_perl is ... Apache should be able to find them ... ...
    (comp.lang.perl.misc)
  • Re: $r not work in mod_perl 2
    ... When I set "SetHandler perl-script", the script cannot be run and the ... I see the http://perl.apache.org 's installation manual, ... perl script cannot invoke the mod_perl's function. ...
    (comp.lang.perl.misc)
  • Re: HTML::Mason handle nonexistent directories
    ... SetHandler perl-script ... otherwise apache will send a text/plain header with any of the ... Prev by Date: ...
    (comp.lang.perl.modules)