T
T
Twelfth Doctor2017-10-01 09:10:02
Nginx
Twelfth Doctor, 2017-10-01 09:10:02

What are the differences between the two Nginx configurations?

Hello. What's the Difference?

server {
          listen 80 default_server;
        listen [::]:80 default_server;
and
server {
listen 80;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2017-10-01
@verdex

Support for IPv6 and the fact that the server will be default, i.e. if nginx does not find a suitable host (server_name), then it will start with default_server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question