[Dancer-users] web server configuration under built-in Dancer webserver
geistteufel at yahoo.fr
Sun Mar 6 00:42:02 CET 2011
Did you try the combinaison NGINX + Plackup ?
Take a look at the Deployment doc (I have contribute to update this section
:)) : http://susbck.com/g/nNt/GmFmW
It's really easy to deliver static file with nginx, and the speed is awesome
From: Mr. Puneet Kishor
Sent: Saturday, March 05, 2011 9:25 PM
To: dancer-users at perldancer.org
Subject: [Dancer-users] web server configuration under built-in Dancer
I asked this a few days ago but didn't receive any reply. So, trying
Here is what I want to do -- set relative paths to directories (aliases, in
the world of Apache) when using the built in Dancer server, version 1.3011.
Here is why -- One, I am getting a bit sick of Apache. Methinks a lot of my
performance problems are tied to Apache, perhaps because I don't know how to
tune the heck out of it. Nevertheless, the major problem is, I get very,
very poor error messaging with Dancer+Apache combination. An example -- I
had a mistake in my script last night that I was accessing via Ajax. All I
got was an error popup on the client telling me that "an internal error had
occurred." Other than that, nothing in Apache error log, and, funnily I
was/am also not getting any development.log output.
In sheer frustration, I decided to run the built-in Dancer server, and boom!
I got a nice message saying "var prcp not definted at line blah blah" and I
also got messages in the development.log. The problem now? Well, none of my
aliases, as declared in httpd.conf are available to the built-in server.
Here is how I work --
applications in ~/<http root>/<app dir>. In my vhosts.conf file I define an
alias for lib as `/lib ~/<http root>/lib` so I can access all my JS
src="/lib/funky/funky.min.js"></script>` and so on. How can I define these
kind of aliases for the Dancer's built-in server?
Additionally, what am I doing wrong that I always get such poor error
Dancer-users mailing list
Dancer-users at perldancer.org
More information about the Dancer-users