Welcome! Log In Create A New Profile


Listen on transient address

Roger Fischer
November 15, 2018 03:00PM

I have an NGINX instance that listens on a tunnel (and some other interfaces). When NGINX was restarted while the tunnel was down (tun device and address did not exist), NGINX failed to start.

[emerg] 1344#1344: bind() to failed (99: Cannot assign requested address)

Relevant config:

listen default_server;
listen default_server; # tunnel, not always up

Is there a way to configure NGINX to listen “best effort”, still start even if it can’t bind to the address/port, and periodically retry to bind to the address/port? This would be my preferred solution.

Alternatively, if I pre-define the tunnel device and its address (I have not explored that yet), would NGINX bind successfully when the tunnel is down?



nginx mailing list
Subject Author Posted

Listen on transient address

Roger Fischer November 15, 2018 03:00PM

Re: Listen on transient address

Ashish SHUKLA November 16, 2018 03:02AM

Re: Listen on transient address

Maxim Dounin November 16, 2018 06:42AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 91
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready