You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Geoffrey Young <gy...@laserlink.net> on 2000/11/22 17:06:53 UTC

RE: Using the same mod_perl cgi-bin by 2 domains mapped to the sa me IP


> -----Original Message-----
> From: David Jourard [mailto:cgi@bytesinteractive.com]
> Sent: Wednesday, November 22, 2000 11:54 AM
> To: modperl@apache.org
> Subject: Using the same mod_perl cgi-bin by 2 domains mapped 
> to the same
> IP
> 
[snip]
> 
> I'd like to get it so that both domain names can access the 
> same cgi-bin 
> configured to run as mod_perl.
> 
> It works well in one but I get an Undefined for the other (or 
> vice versa) 
> since its probably using scripts compiled for that child 
> process from the 
> other.
> 
> eg.
> 
> Undefined subroutine 
> &Apache::example2_2ecom::cgi2dbin::myscript_2ecgi::MyFunction

try setting
$Apache::Registry::NameWithVirtualHost = 0;

in your startup.pl

and read
http://perl.apache.org/guide/config.html#A_Script_From_One_Virtual_Host_C

should do the trick...

--Geoff

> 
> Thank-you
> David J.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: modperl-unsubscribe@apache.org
> For additional commands, e-mail: modperl-help@apache.org
>