perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perrin Harkins" <per...@elem.com>
Subject Re: mixing cgi-bin & mod_perl
Date Thu, 20 Dec 2001 20:48:15 GMT
> He wants to mix cgi-bin & mod_perl by testing all of the scripts in
> cgi-bin and putting one cgi-script at a time into mod-perl folder.

A very simple way to do this is to use <Location> directives to add them to
PerlRun one at a time:

<Location /cgi-bin/some_scr.pl>
SetHandler perl-script
 PerlHandler Apache::PerlRun
 Options +ExecCGI
 #optional
 PerlSendHeader On
...
</Location>

<Location /cgi-bin/some_other_scr.pl>
SetHandler perl-script
PerlHandler Apache::PerlRun
Options +ExecCGI
#optional
PerlSendHeader On
...
</Location>

These directives will override the broader directives for /cgi-bin/.

You could use mod_macro (or <Perl> sections) to avoid all the duplicated
typing.

- Perrin


Mime
View raw message