hostname based listen directive with A/AAAA RRs

Maxim Dounin mdounin at
Wed Aug 15 00:06:10 UTC 2018


On Tue, Aug 14, 2018 at 04:53:23PM -0400, Jim Popovitch wrote:

> Hello,
> Will the following listen statement bind to all addrs (2xIPv4 and
> 2xIPv6)?
> server {
>    listen ssh http2 ipv6only=no bind;

No.  If a hostname is used in the listen directive, it will use 
the first address the name resolves to.

Maxim Dounin

More information about the nginx mailing list