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

Maxim Dounin mdounin at mdounin.ru
Sat Feb 12 13:28:01 UTC 2022


Hello!

On Sat, Feb 12, 2022 at 10:11:25AM +0000, lejeczek via nginx wrote:

> 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?

nginx won't fail if it also listens on * with the same port (as it 
won't actually try to listen on the particular IP addresses in 
this case, see the description of the "bind" parameter at 
http://nginx.org/r/listen).

-- 
Maxim Dounin
http://mdounin.ru/



More information about the nginx mailing list