Skip to content

Instantly share code, notes, and snippets.

@cooperq
Created November 11, 2012 23:31
Show Gist options
  • Save cooperq/4056710 to your computer and use it in GitHub Desktop.
Save cooperq/4056710 to your computer and use it in GitHub Desktop.
simple node redirect app
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(302, {'Location': 'https://ethersheet.org'});
res.end();
}).listen(8000);
console.log('Server running at http://0.0.0.0:8000/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment