Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

redirect to 2012

  • Loading branch information...
commit a1b747880ebf32dd67dce0c08e65602bd9b137f8 1 parent 48ed39a
@gerad gerad authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 config/app.js
View
4 config/app.js
@@ -74,8 +74,8 @@ app.configure('development', function() {
app.configure('production', function() {
app.use(express.static(app.paths.public, { maxAge: 1000*60*5 }));
app.use(function(req, res, next) {
- if (req.connection.remoteAddress !== '127.0.0.1' && req.headers.host !== 'nodeknockout.com')
- res.redirect('http://nodeknockout.com' + req.url);
+ if (req.connection.remoteAddress !== '127.0.0.1' && req.headers.host !== '2012.nodeknockout.com')
+ res.redirect('http://2012.nodeknockout.com' + req.url);
else
next();
});
Please sign in to comment.
Something went wrong with that request. Please try again.