proxy_pass error: host not found in upstream

Igor Sysoev igor at sysoev.ru
Mon May 10 13:15:54 MSD 2010


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/



More information about the nginx mailing list