Elizabeth Mattijsen wrote: > I have the configuration of a number of virtual hosts in a database. > Only those virtual hosts are handled by the Apache 2 server. Basically, > all requests are handled by the same Perl code. And everything is set > up from a PerlRequire file. > > This is all fine and dandy, but I would like each virtual host to have > its own access and error log. And I'm lost in the MP2 documentation on > how to do that from the PerlRequire file. There is some documentation > about such a feature in Apache::PerlSections, but I'd rather not use > Perl sections in the httpd.conf
try $s->add_config - it injects configurations right into the server (in .htaccess-like fashion, with the same protections). be sure to check the return value unless you're using current CVS. > (and I'm also not seeing how I could use > a single <Perl> section for multiple VirtualHosts, but then I may be a > bit dense after a long day ;-). see Tie::DxHash - it lets you preserve order _and_ multiple keys in hashes, which is just what you need here. > > > Confused and in appreciation of anyone who could give some clarity. HTH :) --Geoff -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html