Hello Joshua,

Friday, June 28, 2002, 3:13:21 PM, you wrote:

JC>  > Friends, whether and at you arose the following problem:
JC>  >
JC>  > By the same machine we have 2 different virtual sites; their files are
JC>  > located in different catalogues.
JC>  >
JC>  > In http.conf full freedom for .htaccess is given.
JC>  >
JC>  > Configuration Apache::ASP occurs through .htaccess #1 for a site #1
JC>  > and .htaccess #2 for a site #2.

JC> This is typical when modules of the same name are located
JC> if different places, for example, for both sites the modules
JC> used are:

JC>    use SiteConfig.pm

Yes, absolutely right about same names of modules !

JC> Because the perl interpreter is shared globally across sites,
JC> after site 1 module loads, site 2 will use it if it is
JC> the same name.  One way around this is to have all the
JC> local site config data in the local global.asa.  Another
JC> is to have a per site naming convention like:

JC>    use Site1::Config.pm;
JC>    use Site2::Config.pm;

JC> or other way around:

JC>    use Config::Site1;
JC>    use Config::Site2;

Yes, will come to give different names to modules which carry out
approximately identical functions on different sites.

JC> It may be that this works if you subclass off a base class.

JC> You can also consider more drastic measures like

JC>    MaxRequestsPerChild 1

JC> or doing a &CORE::exit(); in a Apache->register_cleanup()
JC> to kill the process after executing.  But this
JC> might defeat much of the point of using mod_perl.

I think, that in most cases such approach will be very inefficient.

Many thanks!

It is a pity, that there is no beautiful decision of such problem.
Though, nevertheless exists is to use pure(clean) CGI.

-- 
Best regards,
 Alexander                            mailto:[EMAIL PROTECTED]


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

Reply via email to