Skip to content

Instantly share code, notes, and snippets.

@aspyker
Last active December 4, 2015 01:00
Show Gist options
  • Save aspyker/a9eda1c5614fa77f4e70 to your computer and use it in GitHub Desktop.
Save aspyker/a9eda1c5614fa77f4e70 to your computer and use it in GitHub Desktop.
var http = require('http');
const PORT=7001;
function handleRequest(req, res){
console.log(req.connection.remoteAddress + " " + req.method + " " + req.url);
res.statusCode = 400;
res.end("This registry no longer supported, see http://userpage"); // update userpage to instructions of where to use now
}
var server = http.createServer(handleRequest);
server.listen(PORT, function(){
console.log("Server listening on: http://localhost:%s", PORT);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment