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

2000-11-22 Thread Geoffrey Young



> -Original Message-
> From: David Jourard [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 22, 2000 11:54 AM
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Using the same mod_perl cgi-bin by 2 domains mapped to the same IP

2000-11-22 Thread David Jourard

Hi,

I'm running a mod_perl application on a virtual hosted site but with its on 
apache web server.

I need to install another domain name using the same virtual host ip.

eg.


ServerName example1.com
.
.



ServerName example2.com
.
.


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

Thank-you
David J.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]