Friday 26 April 2019

nginx, firewall, and node setup question

I have a linux VPS running nginx as a reverse proxy to my node server. On my VPS, I have node server running on localhost:9999.My nginx is listening on port 80, where if hostname is my website url or ip address, redirect it to https. The server block listening on 443, specifically the server_name variable, has my webserver's IP address on it.If I go to my webserver's IP address port:9999, it loads my website. Is this suppose to happen? Am I suppose to block port 9999 from public access and only accessible by my nginx server?

Submitted April 27, 2019 at 07:15AM by eggtart_prince

No comments:

Post a Comment