Your root Location directives are overriding your cgi-bin Location.
You set your embperl to skip all files but the ehtml, but that means
it does nothing with the .pl files.
Try this instead for the root Location.
<Location />
<FilesMatch "\.ehtml$">
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
</Filesmatch>
</Location>
cliff rayman
genwax.com
Jasper Wong wrote:
>
> ...
> Alias /cgi-bin/ "/abc/cgi-bin/"
> <Location /cgi-bin>
> SetHandler perl-script
> PerlHandler Apache::Registry
> Options ExecCGI
> PerlSendHeader On
> </Location>
> <Location />
> SetHandler perl-script
> PerlHandler HTML::Embperl
> PerlSetEnv EMBPERL_FILESMATCH "\.ehtml"
> Options ExecCGI
> </Location>
> ...
> ...
>
> Here's the problem: this setup works fine for my embperl pages, but the
> perl files (*.pl) in /cgi-bin fail to run and return as text files
> to the web browser.
> If I comment out the embperl section (comment out the whole <Location />)
> then the perl files in /cgi-bin work fine. What am I doing wrong?
> Comments are greatly appreciated. Thanks in advance.
>
> Best Regards,
> Jasper
>
> [EMAIL PROTECTED]