There is no error in line 

<Files *.pl>

It is working for me, on 
(mod_perl/1.24, Apache/1.3.12 , RedHat7).

Content of my perl.conf file are:
Alias /perl/ /var/www/perl/
  <Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    Options +ExecCGI
  </Location>

<Files *.pl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    PerlSendHeader On
    Options +ExecCGI
</Files>

<Files *.mpl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    PerlSendHeader On
    Options +ExecCGI
</Files>

<Location /perl-status>
            SetHandler perl-script
            PerlHandler Apache::Status
</Location> 

I am able to run *.pl and *.mpl using above 
settings.

In your case possible error may be like  <Files..> section 
may be nested inside directive like <Location..>, or
inside any other directive.

Please check your error log. What happen when you get your
mod-perl script using browser, You get the source code as it is 
or get any error?

-Surat 




At 10:08 AM 2/18/01 -0700, Jeff Beard wrote:
>
>Maybe:
>
><Files ~ "\.pl$">
>...
></Files>
>
>I think there's some documentation on this issue as well.
>
>--Jeff
>
>
>On Sun, 18 Feb 2001, Rich Feather wrote:
>
>> I'm trying to get my Apache Web Server to read *.pl files using mod_perl
>> (standard Linux-Mandrake 7.2).  Under perl, it works fine and, indeed, in
>> httpd-perl.conf, it shows
>>
>>         Alias perl /var/www/perl
>>         <Directory /var/www/perl>
>>                 SetHandler perl-script
>>                 PerlHandler Apache::Registry
>>                 PerlSendHeader On
>>                 Options ExecCGI -Indexes
>>         </Directory>
>>
>> Also, I've tried up the following
>>
>>         <Directory /var/www/html>
>>                 SetHandler perl-script
>>                 PerlHandler Apache::Registry
>>                 PerlSendHeader On
>>                 Options ExecCGI -Indexes
>>         </Directory>
>>
>> and/or
>>
>>         <Files *.pl>
>>                 SetHandler perl-script
>>                 PerlHandler Apache::Registry
>>                 Options ExecCGI
>>         </Files>
>>
>> Restarted after each change
>>         /etc/rc.d/init.d/httpd restart
>>
>> ...but I cannot get the server to parse *.pl files using mod_perl.
>>
>> Any ideas?
>>
>> Thanks.
>>
>
>--
>Jeff Beard
>_______________________________________
>Web:           www.cyberxape.com
>Email:         jeff at cyberxape dot com
>Earth:         Boulder, CO, USA
>


Reply via email to