web server configuration under built-in Dancer web server
I asked this a few days ago but didn't receive any reply. So, trying again -- 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 -- I store all my common JavaScript libraries in ~/<http root>/lib, and all my 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 libraries via `<script type="text/javascript" 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 reporting? -- Puneet Kishor
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 ! -----Message d'origine----- From: Mr. Puneet Kishor Sent: Saturday, March 05, 2011 9:25 PM To: dancer-users@perldancer.org Subject: [Dancer-users] web server configuration under built-in Dancer webserver I asked this a few days ago but didn't receive any reply. So, trying again -- 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 -- I store all my common JavaScript libraries in ~/<http root>/lib, and all my 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 libraries via `<script type="text/javascript" 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 reporting? -- Puneet Kishor _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
On Mar 5, 2011, at 5:42 PM, Geistteufel wrote:
Did you try the combinaison NGINX + Plackup ?
Thanks for the pointer. At some point I will look at it. For now, I need to keep moving forward as expeditiously as possible. Using the built-in server to do my testing may be the most expeditious as opposed to installing a brand new server (it is not just a matter of my development laptop, but also all the server machines we have). Thanks, but for now, I need help with figuring out how to configure the web site parameters with the built-in server.
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 !
-----Message d'origine----- From: Mr. Puneet Kishor Sent: Saturday, March 05, 2011 9:25 PM To: dancer-users@perldancer.org Subject: [Dancer-users] web server configuration under built-in Dancer webserver
I asked this a few days ago but didn't receive any reply. So, trying again --
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 -- I store all my common JavaScript libraries in ~/<http root>/lib, and all my 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 libraries via `<script type="text/javascript" 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 reporting?
-- Puneet Kishor _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
participants (2)
-
Geistteufel -
Mr. Puneet Kishor