How to get Node.JS Express to listen only on localhost? - Stack Overflowi'm running a nodejs application and listen to port 3002, and use nginx as reverse proxy to redirect foo.chunghe.me to chunghe.me:3002, but i don't want to expose chunghe.me:3002 from outside world change from:
app.listen(3002)to
app.listen(3002, 'localhost')
沒有留言:
張貼留言