[dancer-users] Collision of multiple Dancer2 apps using Plack::Handler::Apache2
Pedro Melo
melo at simplicidade.org
Mon Sep 16 19:54:31 BST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20130916/6ef9be6f/attachment.htm>
More information about the dancer-users
mailing list