You can use Apache::PerlVINC, although it may affect your performance. The recommended approach is to start two separate servers. You can use the same apache and just start it on two different ports with separate config files. Change @INC inside each one to point to the correct version of your modules.