title: Can't get index.html to show with Express in Nodejs
body: <p>I'm trying to run my first express app, but can't seem to get my webpage to show.  I have the following code:</p>
  
  <pre><code>var fs = require("fs");
  var config = JSON.parse(fs.readFileSync("files/config.json"));  
  var host = config.host;
  var port = config.port;
  var express = require("express");
  
  var app = express();
  
  app.use(app.router);
  app.use(express.static(__dirname + "/public"));
  
  app.get("/", function(request, response){
      response.send("hello!");
  });
  
  app.listen(port, host);
  console.log("Listening on port" + port);
  </code></pre>
  
  <p>Here is my directory tree</p>
  
  <pre><code>nodejs/
      js/
          javascript.js
      public/
          index.html
  </code></pre>
  
  <p>I know the server is running because I get my <code>"Hello!"</code> response in the browser when I run <code>127.0.0.01:1337</code></p>
  
  <p>But when I try and type the webpage <code>1227.0.0.1:1337/index.html</code>, I get <code>Cannot GET /index.html</code> displayed in the browser</p>
  
  <p>So I'm guessing it's something wrong with the <code>name</code> value in my <code>get</code> method, but can't figure out what it is and how to fix it.</p>