multihost
Hosting multiple Express apps on the same server.
Installation
$ npm install --save multihost
API
var multihost =
multihost(options)
Returns a middleware to host an Express application.
Options
The function takes an option options
object that may contain any of the following keys:
hosts
A virtual host string or an array of virtual host strings.
route
A route string containing the URI to be matched.
server
An Express app as shown below:
var app = ;
Example
var app = ;var fooApp = ;var barApp = ;var mainApp = ;var multihost = ; app; app; app; app; app;