We're starting to use mod_perl in our development as we expose "web services" interfaces to many of our backend systems. But I'm running into a problem that I can't figure a solution to.
We have a single Apache2 dev server. I've configured it with virtual hosts such that each developer has his/her own port. So, calling 192.168.0.100:8001 accesses my virtual host and port 8002 accesses another developer's virtual host.
Each virtual host entry has a "PerlSetEnv PERL5LIB" pointing to the /perllib directory in each developers' individual home directory, so /home/sheridancat/perllib and /home/otherguy/perllib.
In the base apache2 config file, I have the following:
The problem is that which PerlResponseHandler is being called is ambiguous. It could be the version in /home/sheridancat/perllib or the one in /home/otherguy/perllib. If we're out of synch (like because one of us is working) there is frustration because the module in memory may not be the one being worked on.PerlRequire "/etc/apache2/startup.pl" <Location /handleit> SetHandler perl-script PerlResponseHandler MyNamespace::Apache2::RequestHandler::HandleStuf +f </Location>
My hope is that there's a way such that a call to port 8001 will grab /home/sheridancat/perllib/MyNameSpace... and a call to port 8002 will load /home/otherguy/perllib/MyNameSpace....
So, does anyone have any experience setting up mod_perl like this? Any help is appreciated.
SheridanCat
In reply to Writing mod_perl in multi-developer environment by SheridanCat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |