Play Framework: How to Host multiple sites using same Play instance (aka virtualhosts)
Lately I have coded few small services/sites using play framework and I found the need to co-host these multiple sites on a single physcial server.
Lately I have coded few small services/sites using play framework and I found the need to co-host these multiple sites on a single physcial server.
Few days back while deploying a play application on a ubuntu server, I got following error (this application was running fine in dev and prod mode on a mac)
```scala
play.api.UnexpectedException: Unexpected exception[MalformedInputException: Input length = 1]
at play.api.http.HttpErrorHandlerExceptions$.throwableToUsefulException(HttpErrorHandler.scala:276)
at play.api.http....
Application X has not been registered. This is either due to a
require()
error during initialization or failure to callAppRegistry.registerComponent
Manytimes we need to host multiple websites/applications on a single host - e.g., say a wordpress (php) blog with a play app or 2 play apps on a single host. One of the simplest way to achieve this is to use apache as a frontend proxy routing traffic back to the right application based on domain name.
Post 2.5.x release, older approach of having Global objects to access configuration parameters available in application.conf is no longer recommended. Instead, it is advised now to use dependency injection to access these.
At www.webkj.com, the privacy of our visitors is of extreme importance to us. This privacy policy document outlines the types of personal information is received and collected by www.webkj.com and how it is used.
Your forum postings, comments, and other contributions to this site are public. Please use good judgment and common sense when posting anything to this site.
Log Files
Like many ...
A post at the Google Webmaster Blog reports that Google has at-last added a new algorithm to handle googlebomb problem. It's a welcome addition, though Google should have taken care of this years ago.
Since the invent of World Wide Web by Tim Berners-Lee in start of 1990s, Web has grown at maddening speed year after year. Today web has become an important part of our experience, and it is effecting the production and consumption of information in all sort of human endeavors..