Skip to content

Instantly share code, notes, and snippets.

@FLYBYME
Created August 17, 2011 22:40
Show Gist options
  • Save FLYBYME/1152828 to your computer and use it in GitHub Desktop.
Save FLYBYME/1152828 to your computer and use it in GitHub Desktop.
vhost app
var express = require('express');
var app = module.exports = express.createServer();
app.configure(function() {
app.use(express.bodyParser());
app.use(express.methodOverride())
app.use(app.router);
app.use(express.static('/home/dev/wiyc.info/public'));
});
exports.app = app;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment