On Sat, Jun 11, 2011 at 3:33 PM, Alex Kalderimis <alex@flymine.org> wrote:
If anyone is interested, I was able to get three instances of the same app mounted successfully, but I had to additionally specify the 'views' and 'public' settings, as below:
set views => $view_dir; set public => 'public';
The full psgi script is here: http://pb.rbfh.de/23RCNzXyqIiJb
Hi Alex, I've had luck running my app under nginx reverse proxy. I get nginx to serve the static content directly so my app only handles the dynamic stuff. It was pretty easy to set up and it might simplify your configuration. The only tricks are adding settings to nginx to forward the original Host, user ip, and scheme (to tell https vs http).
Cheers
On Fri, 2011-06-10 at 20:21 +0100, Alex Kalderimis wrote:
I've been having some issues mounting multiple webapps on a single Plack server according to the documentation (http://search.cpan.org/dist/Dancer/lib/Dancer/Deployment.pod).
After reading through the source a bit I managed to get my content served, but the static files are all being handled by the route handlers. It seems that somewhere down the line the 'public' setting is going undef, along with all others presumably.
Anyway, the log messages I get are here: http://paste.perldancer.org/29wzxHG7VkVoW,
And the psgi I'm using is here: http://paste.perldancer.org/OntvcvVUSY7k
Any help or suggestions would be greatly appreciated.
_______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users