server listen directive for IPV4 and IPV6

shiz nginx-forum at forum.nginx.org
Thu Mar 16 14:19:09 UTC 2017


Excellent.  Very grateful for the clarification!

Maxim Dounin Wrote:
-------------------------------------------------------

> 
> If you want nginx to listen on both IPv4 and IPv6, you have to use 
> both
> 
>     listen 80;
> 
> and 
> 
>     listen [::]:80;
> 
> in your configuration.
> 
> With nginx running, you can use "netstat -nlt" or "ss -nlt" to 
> find out which listening sockets are in fact open on your system.
> 
> -- 
> Maxim Dounin
> http://nginx.org/
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272973,272980#msg-272980



More information about the nginx mailing list