Feature request: Sub-Domains for staticDir:public

Bug #579575 reported by Roch Delsalle
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
play framework
New
Undecided
Unassigned

Bug Description

It would be nice to be able to route the staticDir to a sub-domain or another domain.
That would be helpful for a CDN hosting of the static dir.

Roch Delsalle (mnml)
description: updated
Revision history for this message
Michael Boyd (mic-t-boyd) wrote :

I'm also hoping for this.

My routing file has:

GET mysite.com/staticresources/ staticDir:public/mysite
GET mycdn.net/staticresources/ staticDir:public/mycdn

But when I use @@{'/public/mycdn/css/main.css'} in templates, the output is wrong:

http://mysite.commycdn.net/staticresources/css/main.css

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.