Feature request: Sub-Domains for staticDir:public
Bug #579575 reported by
Roch Delsalle
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.
I'm also hoping for this.
My routing file has:
GET mysite. com/staticresou rces/ staticDir: public/ mysite staticresources / staticDir: public/ mycdn
GET mycdn.net/
But when I use @@{'/public/ mycdn/css/ main.css' } in templates, the output is wrong:
http:// mysite. commycdn. net/staticresou rces/css/ main.css