Skip to content

Instantly share code, notes, and snippets.

@coderarity
Forked from anonymous/gist:165f9538c3eae64f09f2
Created January 14, 2013 04:55
Show Gist options
  • Save coderarity/d606772b973c10e87a78 to your computer and use it in GitHub Desktop.
Save coderarity/d606772b973c10e87a78 to your computer and use it in GitHub Desktop.
var fs = require("fs"),
http = require("http");
var handler = function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
};
var server = http.createServer(handler);
//server.setSecure(credentials);
server.listen(80);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment