Answer the question
In order to leave comments, you need to log in
How to close a port for external viewing in nginx?
I have a running web application running on port 3333, in nginx via proxy_pass the path is specified to listen to it, it is necessary that access is directly only to the site - and that it is impossible to access this site via http://ip_address:3333.
How to do it in the config file?
Answer the question
In order to leave comments, you need to log in
Hang the application not only on port 3333, but at the same time on 127.0.0.1
Option 1: Hang on the localhost, then there will be no access from the world.
Option 2: Disable on the firewall, but the first option is more correct.
Option 3: Break the SELinux policies by allowing only certain applications to access the port, but the first option is less troublesome.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question