UNPKG

nodejs-cluster

Version:

Clustering with proxy so you can set multiple domain names on port 80

14 lines (10 loc) 270 B
var http = require('http'), httpPort = 9002 ; // Worker processes have a http server. http.createServer(function(req, res) { res.writeHead(200); res.end('hello world domain2\n'); }).listen(httpPort, function () { console.log('Listening to port '+httpPort); });