Francis Daly
May 27, 2015 09:22AM
On Wed, May 27, 2015 at 09:51:40AM +0200, B.R. wrote:

Hi there,

> Is there really nothing you can do on your side about it?
> It is a little tiresome to see both parts throwing the ball back.

If nginx sees host names in particular places in the config file, it
currently chooses to resolve them at start time.

I suspect it will be slow for you to get a patch that changes that
behaviour accepted into nginx.

You can configure your system resolver to avoid needing DNS, by putting
the host names into /etc/hosts.

You can configure your nginx to avoid resolving the host names, by one of:

* not using host names, instead using IP addresses
* using host names, and including an upstream{} which includes the IP address
* including a variable in the directive that includes the host name,
so nginx will not try to resolve it at start time

(which is pretty much the previous answer you got, but with a few specific
ways that you can implement it).

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx on Debian: dynamic network interfaces

B.R. May 26, 2015 11:54AM

Re: nginx on Debian: dynamic network interfaces

Maxim Dounin May 26, 2015 01:12PM

Re: nginx on Debian: dynamic network interfaces

B.R. May 27, 2015 03:54AM

Re: nginx on Debian: dynamic network interfaces

Konstantin Pavlov May 27, 2015 06:56AM

Re: nginx on Debian: dynamic network interfaces

Francis Daly May 27, 2015 09:22AM

Re: nginx on Debian: dynamic network interfaces

Maxim Dounin May 27, 2015 09:32AM

Re: nginx on Debian: dynamic network interfaces

itpp2012 May 27, 2015 09:53AM

Re: nginx on Debian: dynamic network interfaces

B.R. May 27, 2015 12:04PM

Re: nginx on Debian: dynamic network interfaces

itpp2012 May 27, 2015 12:40PM

Re: nginx on Debian: dynamic network interfaces

B.R. July 10, 2015 09:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 303
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready