<div dir="ltr"><div><div>Thank you.<br><br></div>So it's not possible.<br>The solution is to use a webserver as a proxy. :-( (like Dancer1...)<br><br></div>Peco<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/9/16 Celogeek San <span dir="ltr"><<a href="mailto:me@celogeek.com" target="_blank">me@celogeek.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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" target="_blank">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><div class="h5">
<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></div></div>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">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>
<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><br></div>