

var app = module.exports = express.createServer();
// Configuration
app.configure(function () {
 // ...
 // 别把顺序写反了
 app.use(express.static(__dirname + '/public')); 
 app.use(app.router);
});
// 其他 router ...
// 404
app.get('*', function(req, res){
 res.render('404.html', {
 title: 'No Found'
 })
});
把通配符放于最后处理。这样没有经过路由的所有页面默认由 404.html 来接管。
