[dancer-users] Collision of multiple Dancer2 apps using Plack::Handler::Apache2
Slavik Goltser
slavikg at gmail.com
Mon Sep 16 20:07:24 BST 2013
Is it possible for Dancer to have a context-root (java term)?
basically:
/app1/request
/app2/request
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.
On Mon, Sep 16, 2013 at 2:54 PM, Pedro Melo <melo at simplicidade.org> wrote:
> Hi,
>
> On Mon, Sep 16, 2013 at 7:34 PM, Celogeek San <me at celogeek.com> wrote:
>
>> Use 2 differents plackup start script and listen to a socket. Then use
>> apache or nginx as a proxy
>>
>
> 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) :)).
>
> 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.
>
> 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.
>
> You can do it with plack::builder though…
>
> Maybe creating a single App that uses Plack::Builder to split each app
> into it's own vhost, and then use Apache2 with that single app?
>
> Bye,
> --
> Pedro Melo
> @pedromelo
> http://www.simplicidade.org/
> xmpp:melo at simplicidade.org
> mailto:melo at simplicidade.org
>
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20130916/9647bf1d/attachment-0001.htm>
More information about the dancer-users
mailing list