Answer the question
In order to leave comments, you need to log in
What does listen mean in nginx?
Hello.
I have a normal VDS on Ubuntu on Nginx+Apache.
As I understand.
This should be the case in any nginx config.
server {
listen: IP address of the server on which nginx is installed: port 80
}
server {
listen: IP of UNCOMPLETE SITE: port 80
}
Answer the question
In order to leave comments, you need to log in
The listen directive contains the ip of the interface on which port 80 will be listened (for example).
The fact that you had something written there is most likely an error when copy-pasting the config from some instruction.
Incorrect listen will not help either viruses or crackers.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question