Node js with express - Reverse Proxy Server not works

October 20, 2017 3.6k views
Node.js Nginx

Hi All,

I referred this tutorial -> []
and created node js (app.js) and it works with Nginx reverse proxy @ &
but when i use express app in node js , Nginx is not working , but locally its working
please help me
i have attached screen shots for reference here []


http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(8080, 'localhost');
console.log('Server running at http://localhost:8080/');

not works:


res.send('Hello World3!');


console.log('Running on port 8090...');

1 Answer

Issue resolved by using same api path in nginx default configuration


res.send('Hello World3!');


location /app3 {

thanks all

Have another answer? Share your knowledge.