[Dancer-users] Global app-wide "prefix" settings

sawyer x xsawyerx at gmail.com
Wed Sep 28 19:38:43 CEST 2011


Sorry for the late reply. I have been tremendously busy lately and anything
bearing the words "long explanation" is doomed to be delayed on my reading
list.

Anyway, I think you have separated concerns here: app level and server
level. I think people here have been mixing those unjustifiably and causing
themselves a lot of havoc by trying to get it to work. We are not all the
best web server administrators, but sometimes that's where the solution is,
and although we can make app-level shortcuts, we should try to avoid them.

The app should remain a self-contained fixed (I'd even say "pristine") app.
It should not worry about the deployment needs that you specifically have,
on any specific server. This is why we have PSGI and this is also the
mindset of Dancer.

In effect we could write a prefix for static files as well, or a keyword to
allow using the prefix on static files. However, this is a server problem
and therefor my opinion is to refuse any such change in Dancer. Instead you
should configure your server to meet your needs. I personally suggest using
the "Alias" configuration option in Apache.

I hope this clears it up for you. If you have any more questions on this,
feel free to ask, and I hope I could help you with them. Good luck on your
web quest! :)

Sawyer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110928/2f20b7d2/attachment.htm>


More information about the Dancer-users mailing list