<div dir="ltr">Is it possible for Dancer to have a context-root (java term)?<br><br>basically:<br>/app1/request<br>/app2/request<br><br>This is how things are done in the java web world. Each web archive (containing an entire web application) has a context root binding (based on the file name, or set up explicitly as part of a bigger archive) and the web container (tomcat, jboss, etc.) route the request to the proper app based on that.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 16, 2013 at 2:54 PM, Pedro Melo <span dir="ltr">&lt;<a href="mailto:melo@simplicidade.org" target="_blank">melo@simplicidade.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote"><div class="im">On Mon, Sep 16, 2013 at 7:34 PM, Celogeek San <span dir="ltr">&lt;<a href="mailto:me@celogeek.com" target="_blank">me@celogeek.com</a>&gt;</span> wrote:<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></blockquote>


<div><br></div></div><div>That is what he was trying to avoid, and something that is said to be supported on the docs (at least on the Dancer2::Cookbook) :)).</div><div><br></div><div>Yet, I think the documentation is misleading. What is supported is a single server with multiple apps, so its a sort of layering: for each request you test all the routes from all the apps.</div>


<div><br></div><div>What the poster was looking for was true virtual hosting of multiple Dancer2 apps in the same process space, and that is still not supported transparently.</div><div><br></div><div>You can do it with plack::builder though…</div>


<div><br></div><div>Maybe creating a single App that uses Plack::Builder to split each app into it&#39;s own vhost, and then use Apache2 with that single app?</div><div><br></div><div>Bye,</div></div><span class="HOEnZb"><font color="#888888">-- <br>
Pedro Melo<br>

@pedromelo<br><a href="http://www.simplicidade.org/" target="_blank">http://www.simplicidade.org/</a><br><a href="mailto:xmpp%3Amelo@simplicidade.org" target="_blank">xmpp:melo@simplicidade.org</a><br>mailto:<a href="mailto:melo@simplicidade.org" target="_blank">melo@simplicidade.org</a>
</font></span></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><br></div>