An express/vhost boilerplate to host multiple static applications on the same node.js server
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
.gitignore
README.md
package.json
server.js
vhosts.json

README.md

Multiple sites on express+vhost boilerplate

An express+vhost boilerplate to host multiple static applications


Installation

  1. Clone the git repo
  2. Run npm install

A Node.js server will be automatically launched on port 8080.

Configuration

To add a virtual host simply insert a JSON object in the vhost.json file with the following attributes:

{
  "domain": "your-domain.com",
  "path": "relative/path/to/website"
}

It's also possible to define global routes in the server.js file.

NOTE: For local development localhost parameter works.