Hi Monks,
Background :
I host three website on a single machine. say www.mywebsite1.com, www.mywebsite2.com, www.mywebsite3.com. All the three runs on mod_perl2. In the start-up files all the sites I added path to the library containing custom modules for the VirtualServer.
Problem : The problem (for me) is that the path added to @INC for one server (VirtualHost) is available to other also. i.e. I added the path /home/mywebsite1.com/www/library to the first virtual host via its start-up file and /home/mywebsite2.com/www/library to second virtual host. When I try to use some modules with same name as one used with previous servers(VirtualHost), its trying to load from the path added by previous servers (VirtualHost). Is there a way to restrict the scope of library path added, to the current VirtualHost only?
Cheers !
--VC
In reply to Scope of @INC in mod_perl 2 by atemon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |