Welcome! Log In Create A New Profile

Advanced

proxy_pass error: host not found in upstream

任晓磊
May 10, 2010 05:12AM
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?

# /usr/sbin/nginx -V
nginx version: nginx/0.7.64
TLS SNI support enabled
configure arguments: --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock
--http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/body
--http-proxy-temp-path=/var/lib/nginx/proxy
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug
--with-http_stub_status_module --with-http_flv_module
--with-http_ssl_module --with-http_dav_module
--with-http_gzip_static_module --with-mail --with-mail_ssl_module
--with-ipv6 --add-module=/tmp/buildd/nginx-0.7.64/modules/nginx-upstream-fair

It's the debian package.

--
Ren Xiaolei

_______________________________________________
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: 159
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