It depends on your Apache configuration and deployment scenario. Are you using Catalyst? It seems like you are using mod_perl, which I'm fairly certain will make things problematic from a config file point of view. (mod_perl will only load once, hence only reading one config file)

If you switched from mod_perl to FastCGI, you would be able to have a different instance of the app running with a different config for each virtual host... which would likely solve your problem.
I have no direct experience with that, though, so YMMV.  Should work.

Adam

On Feb 19, 2007, at 7:55 PM, Ken McCloskey wrote:

I've read nearly everything I could find about DBIx::Class, but I'm still stuck with the following simple problem - How do I setup DBIx::Class to connect to a different database based on the VirtualHost?

Can someone please provide a minimum example of httpd.conf, startup.pl, etc that will concisely show how exactly this is done. Your help is very much appreciated!

Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/dbix- [EMAIL PROTECTED]/

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to