On Friday 06 February 2004 4:22 pm, Kjetil Kjernsmo wrote:
> > so I can have one such tree for development, and one for the
> > main server. Setting INC in httpd.conf for both systems lets
> > them look at the correct versions of your perl libraries.
>
> Uhm, I feel kinda stupid now, but exactly how do you do that...? I tried
> to just use my current setup, which is that in the VirtualHost section
> of httpd.conf, I Include a axkit.conf, that starts with PerlRequire
> perl.pl, and in perl.pl I have (among other things) tried to add
> unshift @INC, '/home/kjetil/dev/perl';
> but it doesn't appear to be prepended to @INC...
>
Well, all I do is use a PerlRequire which contains 

use lib ../production

and for the test system

use lib ../test

but remember that doesn't work in a SINGLE instance of Apache, because there 
is only one @INC array, so different virtual hosts will still look for files 
in the same places. It is basically impossible to run 2 sites with different 
code modules in ONE Apache. What you have to do is run 2 seperate apache 
setups on 2 different ports. If you want to hide the port difference you can 
run a front-end reverse-proxy on port 80, then run each sites individual 
setup on high ports.

We used this on the Aptus VPX project to have multiple developers all running 
their stuff on one dev server, it works good, and it can be used in 
production as well, as long as you don't mind the overhead of a separate 
apache setup running for each client (if they are busy sites it will be 
almost as efficient as one apache anyway). 

>
> Kjetil

-- 
Tod Harter
Giant Electronic Brain
http://www.giantelectronicbrain.com


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

Reply via email to