Is it possible work with subdomains in Play 2.0 conf/routes? Like Play 1.1:
GET {client}.mysoftware.com/ Application.index
How I can work with subdomains in my Play 2.0 app?
The subdomain configuration is not done at the Play level, but at the reverse proxy level.
Unfortunately not.
Here's the definition of a route:
case class Route(verb: HttpVerb, path: PathPattern, call: HandlerCall) extends Positional
It accepts the verb (e.g. GET
), the path component (i.e. not the domain or port, but only the path component) and the handler.
The definition of PathPattern
can be found here, and as far as I can see, it doesn't cater for domain nor port.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With