[::]:80; what does that mean?

Asked 2 years ago, Updated 2 years ago, 42 views

There are quite a few posts telling me to write down the port twice, but I don't know why I write listen [::]:80;.

server {
        listen       80;
        listen [::]:80; # This part
        ...
}

nginx

2022-09-20 11:01

1 Answers

If all fields in IPv6 are zero, simply omit them and mark them as ::. I think that's it.

https://stackoverflow.com/questions/34305351/what-does-mean-in-my-nginx-config-file

Search Keyword: nginx what does mean "::"


2022-09-20 11:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.