We are using Nginx as a Load balancer.
Nginx having IP address of :10.110.0.200 and
address of host machines are 10.110.3.20|10.110.3.21
this is the configuration file:
upstream test1 { server 10.110.3.20:xxxx; }
server {
listen 10.110.0.200:80; server_name test1.xyx.com;
location / {
proxy_set_header Host $host;
proxy_pass http://test1;
} }
We are getting an error message
*798 upstream timed out (110: Connection timed out) while connecting
to upstream, client: 10.100.88.210
Any leads on this?
When we do curl for
curl -v http://10.110.3.20:xxxx
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
Best Answer
Given that you can't connect to the backend directly using curl, the problem isn't an nginx config problem, but instead something lower-level. I'm going with firewall misconfiguration -- it's the catch-all problem in these situations.