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

Pedro Melo melo at simplicidade.org
Wed Sep 28 20:14:57 CEST 2011


Hi,

On Wed, Sep 28, 2011 at 6:54 PM, Assaf Gordon <gordon at cshl.edu> wrote:
> What do I need to change in order for the static files to be served from "http://server.cshl.edu/app1/images" instead of "http://server.cshl.edu/images" (which is the way templates will be rendered using "request.uri_base" and "request.uri_for" ?

Inside the server.cshl.edu Apache VirtualHost configuration block, try this:

Alias /app1/images /path/to/app1/public/images
Alias /app2/images /path/to/app2/public/images

Best regards,
-- 
Pedro Melo
@pedromelo
http://www.simplicidade.org/
http://about.me/melo
xmpp:melo at simplicidade.org
mailto:melo at simplicidade.org


More information about the Dancer-users mailing list