Skip to content

Instantly share code, notes, and snippets.

@matthewmueller
Created September 5, 2012 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewmueller/3629978 to your computer and use it in GitHub Desktop.
Save matthewmueller/3629978 to your computer and use it in GitHub Desktop.
vhost on separate paths
var express = require('express'),
app = module.exports = express();
app.use('/a', express.vhost('*', require('./a')));
app.use('/b', express.vhost('*', require('./b')));
app.listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment