Marc Brooks wrote:
Hello ALL,

Not sure if this is possible.. So here I go..

I have a set of .pm's and .cgi scripts that are within each Virtual Host.

Example:

/home/domain1.com/community/Community/Toolkit.pm  -- Methods accessed by-->
http://domain1.com/community/login.cgi
/home/domain2.com/community/Community/Toolkit.pm  -- Methods accessed by-->
http://domain2.com/community/login.cgi
/home/domain3.com/community/Community/Toolkit.pm  -- Methods accessed by-->
http://domain3.com/community/login.cgi
[...]
The problem I am facing is when you execute domain1.com's login.cgi
occasionally you will get output from domain 2 or 3's login.cgi (variables basically change)


Any suggestions or easy ways to resolve this?

i think what you are after is: $Apache::Registry::NameWithVirtualHost = 1; http://perl.apache.org/docs/1.0/guide/config.html#A_Script_From_One_Virtual_Host_Calls_a_Script_with_the_Same_Path_From_the_Other_Virtual_Host

I have tried:

# This works but has issues like described above

PerlModule Apache::Registry

<Directory /www/domain.com/community/>
    <Files *.cgi>
        SetHandler perl-script
        PerlHandler Apache::Registry
        PerlSendHeader On
        Options +ExecCGI
    </Files>
</Directory>

__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to