Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

Commit

Permalink
Merge pull request #8 from mozilla/1208480-disable-redirect-master
Browse files Browse the repository at this point in the history
Bug 1208480 - disable directory redirects when serving static content.
  • Loading branch information
rfk committed Oct 20, 2015
2 parents fc68e38 + 69172b6 commit 2b86981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/bin/bigtent
Expand Up @@ -138,7 +138,7 @@ app.use(function(req, res, next) {
}); });


var static_root = path.join(__dirname, '..', '..', 'static'); var static_root = path.join(__dirname, '..', '..', 'static');
app.use(express.static(static_root)); app.use(express.static(static_root, { redirect: false }));


app.error(function(err, req, res, next) { app.error(function(err, req, res, next) {
logger.error(err.stack || err); logger.error(err.stack || err);
Expand Down Expand Up @@ -184,4 +184,4 @@ process.nextTick(function() {
// 2) Dev/Ops feedback // 2) Dev/Ops feedback
console.log('Everyone is welcome in the Persona ID Big Tent... Even you. Listening on ' + lstnUrl); console.log('Everyone is welcome in the Persona ID Big Tent... Even you. Listening on ' + lstnUrl);
healthCheck(); healthCheck();
}); });

0 comments on commit 2b86981

Please sign in to comment.