Created
October 28, 2015 19:18
-
-
Save Lenninlasd/80ae5b99a068e095cc8a to your computer and use it in GitHub Desktop.
simple redirection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
http.createServer(function (request, response) { | |
var url = 'https://flugel.firebaseapp.com/'; | |
response.writeHead(302, {Location: encodeURI(url)}); | |
response.end(); | |
}).listen(80, function () { | |
console.log('Server running'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment