Skip to content

Instantly share code, notes, and snippets.

@dalmaer
Created February 28, 2012 05:08
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 dalmaer/1929821 to your computer and use it in GitHub Desktop.
Save dalmaer/1929821 to your computer and use it in GitHub Desktop.
var connect = require('connect')
, http = require('http')
, https = require('https');
var app = connect()
.use(connect.logger('dev'))
.use(connect.static('public'))
.use(function(req, res){
res.end('hello world\n');
})
http.createServer(app).listen(80);
https.createServer(tlsOptions, app).listen(443);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment