Listen on transient address
roger at netskrt.io
Thu Nov 15 19:59:31 UTC 2018
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 126.96.36.199:443 failed (99: Cannot assign requested address)
listen 172.16.200.5:80 default_server;
listen 188.8.131.52:80 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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx