diff --git a/nginx-nodejs-redis/web/server.js b/nginx-nodejs-redis/web/server.js index 911d46b..145b624 100644 --- a/nginx-nodejs-redis/web/server.js +++ b/nginx-nodejs-redis/web/server.js @@ -13,7 +13,7 @@ app.get('/', function(req, res) { if (isNaN(numVisitsToDisplay)) { numVisitsToDisplay = 1; } - res.send('Number of visits is: ' + numVisitsToDisplay); + res.send(os.hostname() +': Number of visits is: ' + numVisitsToDisplay); numVisits++; redisClient.set('numVisits', numVisits); });