listen on IPs but do not fail if one is absent - ?

Igor Ippolitov iippolitov at nginx.com
Wed Aug 3 09:54:49 UTC 2022


Hello,

I would give a try to 'net.ipv4.ip_nonlocal_bind' sysctl knob. Set it to 
true and bind() won't fail.

Regards,
Igor.

On 12/02/2022 10:11, lejeczek via nginx wrote:
> Hi guys
>
> a novice here so go easy on me with this question:
>
> having multiple 'listen' with IPs or, just one 'listen' with a 
> hostname which resolves to more than one IP - is it possible to tell 
> Nginx not fail when one of IPs is absent, does not exist?
>
> many thanks, L.
>
> _______________________________________________
> nginx mailing list -- nginx at nginx.org
> To unsubscribe send an email to nginx-leave at nginx.org




More information about the nginx mailing list