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

lejeczek peljasz at yahoo.co.uk
Sun Feb 13 07:56:16 UTC 2022


On 12/02/2022 13:26, Francis Daly wrote:
> On Sat, Feb 12, 2022 at 10:11:25AM +0000, lejeczek via nginx wrote:
>
> Hi there,
>
>> 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?
> I think that stock nginx does not support that.
>
> There are possibly ways to avoid the failure; but they all fundamentally
> are different ways to do "only bind to locally-existing addresses".
>
> Cheers,
>
> 	f

I can confess I return to Nginx after long many years of a divorce and 
this curious fact - if Nginx cannot do that - will be a surprise to me.

I thought such a "feature" would be in Nginx by now, if not devised by 
developers than included by popular demand - looking at the 
options/params to 'listen', something like 'remain' or 'insist' which 
would instruct Nginx to start & continue to work and hook onto the IP 
when/after it appeared(but also continue to work after IP disappeared)

thanks, L.



More information about the nginx mailing list