Answer the question
In order to leave comments, you need to log in
How to close the port from the outside?
there is a rented virtual server, nginx is installed on it,
sites on nodejs are raised on different ports, but these ports look outward (to the global Internet)
and the sites are available at the following address http://domain:5000 or http://domain:7000 and one the domain on different ports shows different sites
, I want to make sure that there was no such access to the ports and the sites were opened only by the domain
in the nginx config, the sites are proxied like this
location / {
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question