<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, "Juan José 'Peco' San Martín" <<a href="mailto:jsanmartin@gmail.com">jsanmartin@gmail.com</a>> 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: "<a href="https://github.com/PerlDancer/Dancer/issues/521" target="_blank">yes, with Dancer2 it's possible to run multiple applications on the same server</a>", I'm not able to do it :-/<br>
<br></div>I'm looking for the way to run 2 apps in <b>Dancer2</b> using <b>Plack::Handler::Apache2</b> without any trick as "using a proxy to different web servers", or "join two apps in one", 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><Location /app1><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></Location><br>
<br></div>
# App2<br><div><Location /app2><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></Location><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>