PerlOptions +Parent

"Carl Johnstone" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
Suggestion for a wishlist feature.

I've got around 20 different sites, each of which is configured as it's own 
VirtualHost. Now from time to time I run a different newer version of our 
app on some of the VirtualHosts, whilst leaving others running the original 
code base.

Following some discussion here I tested and implemented the use of 
"PerlOptions +Parent" and this works just fine.

However my only problem with this is that what I'm effectively doing is 
running a separate perl instance for each of those VirtualHosts, sometimes 
I'll have half a dozen - even though I've only got two codebases.

So rather than +Parent which just gives a VirtualHost a separate instance - 
what would be nice would be some way of specifying *which* perl instance to 
use in this VirtualHost. Something like:

<VirtualHost *>
ServerName www.example1.com
PerlInstance myappv4
</VirtualHost>

<VirtualHost *>
ServerName www.example2.com
PerlInstance myappv4
</VirtualHost>


Where www.example1.com creates a new instance named "myappv4", and 
www.example2.com uses the instance the first vhost created.

Carl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.