var http = require('http'); var config = require('./config.json'); http.createServer(function(req, res) { var newUrl = 'http://trxmon.host2host.id/'; /* res.writeHead(302, { 'Location': newUrl }); */ res.setHeader('Content-Type', 'text/html'); res.end('We are moving to <a href="' + newUrl + '">' + newUrl + '</a>'); }).listen(config.listen_port);