This commit is contained in:
2011-12-25 01:44:56 +00:00
parent ec50fb6c8e
commit bc9795fc47
2 changed files with 3 additions and 1 deletions

3
app.js
View File

@@ -24,7 +24,8 @@
app.configure('production', function() {
app.use(express.errorHandler);
return app.use(function(req, res, next) {
return console.log("Hostname: %s", req.header('Host'));
console.log("Hostname: %s", req.header('Host'));
return next();
});
});

View File

@@ -19,6 +19,7 @@ app.configure 'production', ->
app.use express.errorHandler
app.use (req, res, next) ->
console.log "Hostname: %s", req.header('Host')
next()
# if req.header('Host') == 'www.heartb.it'
# res.redirect('http://heartb.it/')
# else