title: How to run static html file in node.js server
body: <p>I'm new in node.js, I have learn node.js and express framework</p>
  
  <p>I know how to run server, set router and render html template basicly, but all the tutorial tell render the html by <code>res.send()</code> or <code>render</code> how can I view static file?Like static sample.html:</p>
  
  <p>just like <code>http://127.0.0.1:8000/static.html</code></p>
  
  <p>my file tree like:</p>
  
  <pre><code>root
  |
  |---server.js
  |---static
      |---static.html
  </code></pre>
  
  <p>How can I view the static file by setting router?Or use some middleware(Better use express framework)?</p>
  
  <p><strong>Updated:</strong>
  I have try this:</p>
  
  <pre><code>    var express = require('express');
      var app = express.createServer();
      app.get('/', function(req, res){
          res.send('Hello World');
      });
      app.configure(function () {
          app.use(express.static(__dirname + '/static'));
      })
  
      app.listen(8000);
  </code></pre>
  
  <p>but it still can not work: tell me:<code>Cannot GET /static/client.html</code></p>