[Nginx] Re: hostname based listen directive with A/AAAA RRs

Jim Popovitch jim at k4vqc.com
Wed Aug 15 03:30:39 UTC 2018


On Wed, 2018-08-15 at 03:06 +0300, Maxim Dounin wrote:
> Hello!
> 
> 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 www.nginx.org:443 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.

Thank you,

-Jim P.


More information about the nginx mailing list