Score:0

What is the difference between listen 443 ssl http2 AND listen [::]:443 ssl http2?

in flag

I am looking at this link: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-6.0#https-configuration

There is a sample of the file /etc/nginx/nginx.conf provided.

The server has got 2 listens as follows:

server {
        listen 443 ssl http2;
        listen [::]:443 ssl http2;
        ...
   }

What is the difference between 1st listen and the 2nd listen?

The 1st listen seems to listen for any request on port 443, where as the 2nd listen seems to listen for any requests with any source IP on port 443?

Score:2
us flag

As described in nginx documentation, the first listen directive is for IPv4 and second one is for IPv6 protocol.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.