<div class="gmail_quote">On Thu, May 28, 2009 at 5:48 PM, Stephen Clouse <span dir="ltr">&lt;<a href="mailto:stephenclouse@gmail.com">stephenclouse@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Commenting that out, then theoretically (note that this is totally untested at the moment, but I intend to tomorrow):<br></blockquote></div><br>Well, it was worth a try, but obviously too much voodoo.  Catalyst complains about not being able to find //_DISPATCH.  Something internal gets fried with the delayed setup call.<br>
<br>This, on the other hand, works perfectly, although less memory-efficient -- one full compile of Catalyst per vhost.  Even so, this should be a win over the traditional FastCGI deployment (since the optree will at least still be shared within the vhost interpreter pool).<br>
<br>&lt;VirtualHost foo&gt;<br>PerlOptions +Parent<br>PerlSwitches -I/path/to/myapp/lib<br>PerlSetEnv MYAPP_CONFIG foo.conf<br>SetHandler modperl<br>PerlResponseHandler MyApp<br>&lt;/VirtualHost&gt;<br><br clear="all">&lt;VirtualHost bar&gt;<br>

PerlOptions +Parent<br>
PerlSwitches -I/path/to/myapp/lib<br>
PerlSetEnv MYAPP_CONFIG bar.conf<br>
SetHandler modperl<br>
PerlResponseHandler MyApp<br>
&lt;/VirtualHost&gt;<br><br>-- <br>Stephen Clouse &lt;<a href="mailto:stephenclouse@gmail.com">stephenclouse@gmail.com</a>&gt;<br>