title: Nodejs App at 0.0.0.0:80 not public
body: <p>I am using a ec2 server running ubuntu and nodejs. I thought this would create a valid server that would respond if I went to my ec2 web address.</p>
  
  <pre><code>var http = require("http");
  var port = 80; 
  var serverUrl = "0.0.0.0";
  console.log("Starting web server at " + serverUrl + ":" + port); http.createServer(      
  function(req, res) {
    timestamp = new Date();
    console.log("Request for URL " + req.url + " received at " + timestamp);
    if (req.url === '/error') {
      console.log('Throwing an error');
      throw "Oops";
    }
    res.end("Hello World " + timestamp);
  }).listen(port, serverUrl);
  </code></pre>
  
  <p>I have used nodejs and espesially express for a while but never have tried to deploy it myself on a vps, any advice is appreciated.</p>