Skip to content

Instantly share code, notes, and snippets.

@ded
Created July 13, 2011 01:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ded/1079544 to your computer and use it in GitHub Desktop.
Save ded/1079544 to your computer and use it in GitHub Desktop.
run multiple hosts (domains) on a single node process
var connect = require('connect')
, app = require('./app')
, app2 = require('./app2')
connect(
connect.vhost('dustindiaz.com', app)
, connect.vhost('foobar.dustindiaz.com', app2)
).listen(3000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment