<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">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)<DIV><BR class="khtml-block-placeholder"></DIV><DIV>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.</DIV><DIV>I have no direct experience with that, though, so YMMV.  Should work.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Adam</DIV><DIV><BR><DIV><DIV>On Feb 19, 2007, at 7:55 PM, Ken McCloskey wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>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? <BR><BR>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!</DIV></DIV><BR> <HR size="1">Finding fabulous fares is fun.<BR><A href="http://farechase.yahoo.com/promo-generic-14795097;_ylc=X3oDMTFtNW45amVpBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzEEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--">Let Yahoo! FareChase search your favorite travel sites</A> to find flight and hotel bargains.<DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">List: <A href="http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class">http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Wiki: <A href="http://dbix-class.shadowcatsystems.co.uk">http://dbix-class.shadowcatsystems.co.uk</A>/</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">IRC: irc.perl.org#dbix-class</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">SVN: <A href="http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/">http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Searchable Archive: <A href="http://www.mail-archive.com/dbix-class@lists.rawmode.org/">http://www.mail-archive.com/dbix-class@lists.rawmode.org/</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>