I recently purchased a Fujitsu server. I am running Linux Mint ( Cinnamon ) on it.
I installed Node.js with no problem, and can run my server script on any tried port other than 80. At first, it responded with an EACCES error, but when i ran node.js as root, that error went away. Now it outputs the same as if i was running it on any other port, but just won't work when i go to the domain.
var http = require('http');
http.createServer(server).listen(80);
function server(req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.end('Hello World\n');
console.dir(req);
}
Ran command-line in shell as:
/home/xymon/node/node server.js
after su login.
My code works on pretty much any other port i've tried. even 81. JUST NOT 80, and it's driving me up a wall.