title: How do express static directories work with a 404 route?
body: <p>I have some code that looks like the following:</p>
  
  <pre><code>app.configure(function() {
     app.set("views", __dirname + "/views");
     app.set("view engine", "ejs");
     app.use(express.bodyParser());
     app.use(express.methodOverride());
     app.use(express.logger()); 
     app.use(app.router);
     app.use(express.static(__dirname + "/public"));
  });
  
  //Routes
  app.get("/", function(req, res) {
      res.render("index.ejs", {locals: {
        title: "Welcome"
      }});
  });
  
  //Handle 404
  app.get("/*", function(req, res, next) {
      next("Could not find page");
  });
  </code></pre>
  
  <p>The problem I have is that I can't access anything in the /public static directory: everything gets caught by the 404 route. Am I missing something about how this is supposed to work? </p>