Welcome! Log In Create A New Profile

Advanced

Re: proxy_pass error: host not found in upstream

May 10, 2010 09:08AM
On Mon, May 10, 2010 at 08:46:53PM +0800, 任晓磊 wrote:

> On Mon, May 10, 2010 at 5:15 PM, Igor Sysoev <igor@sysoev.ru> wrote:
> > Host upload.wikipedia.org not found: 3(NXDOMAIN)
> Thank you for pointing out my mistake.
> But I wonder why is the domain name resolved when testing config file?
> I think NXDOMAIN should be a runtime error, not occured before nginx
> runs. Or else, what would happen if the domain name is deleted during
> nginx running?

nginx resolves hosts at configuration phase, because for a long time
nginx has no non-blocikng resolver. Currently it has, but resolves
hosts at run-time only if proxy_pass contains variables in any place,
not necessarily in the host part.


--
Igor Sysoev
http://sysoev.ru/en/

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

proxy_pass error: host not found in upstream

任晓磊 May 10, 2010 05:12AM

Re: proxy_pass error: host not found in upstream

Igor Sysoev May 10, 2010 05:22AM

Re: proxy_pass error: host not found in upstream

任晓磊 May 10, 2010 08:58AM

Re: proxy_pass error: host not found in upstream

Igor Sysoev May 10, 2010 09:08AM

Re: proxy_pass error: host not found in upstream

任晓磊 May 10, 2010 09:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 245
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