perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Eibner <tho...@stderr.net>
Subject Re: mixing cgi-bin & mod_perl
Date Thu, 20 Dec 2001 20:45:01 GMT
On Thu, Dec 20, 2001 at 09:41:31PM +0100, Miroslav Madzarevic wrote:
>     The scenario:
> There are two folders
> /cgi-bin        with plain perl cgi
> /mod-perl       with Apache::Registry scripts
> 
> The application is being moved from cgi to mod_perl (Apache::Registry) one
> script at a time.
> My friend has a strange idea.
> 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.
> He wants to do this internaly in Apache, changing the request for
> a particular script so for example when you reference /cgi-bin/some_scr.pl
> you actually end with /mod-perl/some_scr.pl. He doesn't want to
> change the <a href> code from html files to stop pointing at /cgi-bin.
> By moving all of them one at a time all of the application will
> eventually end up working under mod_perl.
> 
> How can he do that ?

When he's still renaming the files he could do something like:
Alias /cgi-bin/script1.pl /mod-perl/script1.pl

And when he has moved them all just move the directory so it works from
the original directory. 

-- 
  Thomas Eibner <http://thomas.eibner.dk/> DnsZone <http://dnszone.org/>
  mod_pointer <http://stderr.net/mod_pointer> 

Mime
View raw message