We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48ed39a commit a1b7478Copy full SHA for a1b7478
config/app.js
@@ -74,8 +74,8 @@ app.configure('development', function() {
74
app.configure('production', function() {
75
app.use(express.static(app.paths.public, { maxAge: 1000*60*5 }));
76
app.use(function(req, res, next) {
77
- if (req.connection.remoteAddress !== '127.0.0.1' && req.headers.host !== 'nodeknockout.com')
78
- 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);
79
else
80
next();
81
});
0 commit comments