Home > front end >  No live upstreams while connecting to upstream 502 error
No live upstreams while connecting to upstream 502 error

Time:09-23

nginx load balance error no live upstreams while connecting to upstream
Access interface 502


Below is the configuration file




Access results:


note: tomcat on each server can normal visit


Log an error: 2020/03/04 11:47:08 [error] # 50547:50547 * 1 no live upstreams while connecting to upstream, client: 192.168.0.124, server: localhost, the request: "GET/favicon. Ico HTTP/1.1", upstream: "http://www.song.com/favicon.ico", host: "192.168.0.116," referrer: "http://192.168.0.116/"

Bosses, please advise, why don't load balance after access to?

CodePudding user response:

You are in the configuration HTTPS?

CodePudding user response:

Do you use the cloud server or local server? You want to realize what function is it now?

CodePudding user response:

Put your entire nginx. Conf

CodePudding user response:

The first two figure is nginx configuration of the first is the default. The second is the conf nginx. Conf, my purpose is to configure load balancing

CodePudding user response:

The problem of the network, whether in nginx server can ping two Tomcat service node?

CodePudding user response:

Look at the SELinux

CodePudding user response:

Has been solved, the solution: https://blog.csdn.net/qq_39007083/article/details/104713266
Thank you for your
  • Related