[dancer-users] What can you do in the before hook? - Where is the documentation?

Warren Young warren at etr-usa.com
Fri Mar 28 14:26:59 GMT 2014


On 3/27/2014 10:08, Gabor Szabo wrote:
>
> I was looking to set a catch-all route that will show "site is closed

It is usually better to do such things in your reverse proxy or load 
balancing layers, because one of the reasons the site can be closed is 
that the web app is not running.

For example, if you're putting nginx in front of Dancer, you'd want to 
have an alternate configuration set up that let you switch the Dancer 
proxy stuff out for static content that appears no matter what URL was 
given on the site.


More information about the dancer-users mailing list