Welcome! Log In Create A New Profile

Advanced

Re: proxy_pass error: host not found in upstream

May 10, 2010 05:22AM
On Mon, May 10, 2010 at 05:08:34PM +0800, 任晓磊 wrote:

> config file:
> server {
> listen [::]:80;
> server_name svn.php.net;
> location /{
> proxy_pass http://svn.php.net;
> }
> }
> server {
> listen [::]:80;
> server_name upload.wikipedia.org;
> location /{
> proxy_pass http://upload.wikipedia.org;
> }
> }
>
> # /usr/sbin/nginx -t
> [emerg]: host not found in upstream "upload.wikipedia.org" in
> /etc/nginx/sites-enabled/blocked-reverse-proxy:12
> configuration file /etc/nginx/nginx.conf test failed
>
> I set the similar server block for reverse proxying svn.php.net and
> upload.wikipedia.org , while svn.php.net passed the config test but
> upload.wikipedia.org NOT. Why?

>host upload.wikipedia.org
Host upload.wikipedia.org not found: 3(NXDOMAIN)


--
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: 175
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