A
A
AlexVoronin2017-04-15 15:25:44
Nginx
AlexVoronin, 2017-04-15 15:25:44

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
}

On my server I found this rubbish:
server {
listen: IP of UNCOMPLETE SITE: port 80
}

Moreover, this incomprehensible site sells sports nutrition for jocks.
Tell. How could this happen? Is this some kind of virus? Or hacked prescribed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Ltonid, 2017-04-15
@AlexVoronin

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 question

Ask a Question

731 491 924 answers to any question