<p dir="ltr">Use 2 differents plackup start script and listen to a socket. Then use apache or nginx as a proxy. </p>
<div class="gmail_quote">Le 16 sept. 2013 17:31, &quot;Juan José &#39;Peco&#39; San Martín&quot; &lt;<a href="mailto:jsanmartin@gmail.com">jsanmartin@gmail.com</a>&gt; a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div>Hello.<br><br></div></div>Although the general answer seems to be: &quot;<a href="https://github.com/PerlDancer/Dancer/issues/521" target="_blank">yes, with Dancer2 it&#39;s possible to run multiple applications on the same server</a>&quot;, I&#39;m not able to do it :-/<br>

<br></div>I&#39;m looking for the way to run 2 apps in <b>Dancer2</b> using <b>Plack::Handler::Apache2</b> without any trick as &quot;using a proxy to different web servers&quot;, or &quot;join two apps in one&quot;, etc.<br>

<br><span lang="en"><span>Is it possible</span><span>?</span><span>.</span> <span>I thought</span> <span>Dancer2</span><span></span> <span>had solved it</span> <span>(instead of</span> <span>Dancer1</span><span>)</span><span>.</span></span><br>

<br><span lang="en"><span>With</span> <span>the following configuration</span><span>, I can only run</span> <span>one application</span><span> correctly.</span> <span>If I</span> <span>start</span> <span>both</span><span>,</span> <span>I have</span> <span>a mess</span> <span>...</span></span><br>

<br> # App1<br>&lt;Location /app1&gt;<br>    SetHandler perl-script<br>    PerlHandler Plack::Handler::Apache2<br>    PerlSetVar psgi_app path_to_app1/bin/<a href="http://app.pl" target="_blank">app.pl</a><br>&lt;/Location&gt;<br>
<br></div>
# App2<br><div>&lt;Location /app2&gt;<br>   SetHandler perl-script<br>   PerlHandler Plack::Handler::Apache2<br>   PerlSetVar psgi_app path_to_app2/bin/<a href="http://app.pl" target="_blank">app.pl</a><br>&lt;/Location&gt;<br>
<br></div>
<div>Thanks a lot.<br></div><div>Peco<br></div></div>
<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div>