How to investigate upstream timed out issues?

Hello guys

In my nginx version 1.3.14 I’m having lots of upstream timeouts like
and wonder what’s the correct, professional approach is, to solve these:


762#0: *113 upstream timed out (110: Connection timed out) while reading
response header from upstream, client:, server:,
request: “GET / HTTP/1.1”, upstream:”, host:

relevant nginx config:

location / {
proxy_cache one;
try_files $uri @proxy;

location @proxy {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
proxy_set_header Host $http_host;

proxy_next_upstream error timeout invalid_header http_500 http_502

http_503 http_504 http_404;


proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;


what would you do in my case to examine this? imo the default timeout of
seconds is good and i do not want to increase it. it should be able to
deliver under 60 seconds, so i believe the problem
something else. i just do not know how to investigate this.

any hints very welcome!


Posted at Nginx Forum:,237385,237385#msg-237385

are you able to fetch the given ressource from your nginx-server?

e.g. wget

maybe you have an port-issue (4443 vs 443)


Posted at Nginx Forum:,237385,237390#msg-237390

No it works with port 4443 (I have opened it somewhere else) but am
another wget error message:

–2013-03-29 14:35:00–
Resolving (…
Connecting to (||:4443…
ERROR: cannot verify’s certificate, issued by
/C=US/O=GeoTrust, Inc./CN=RapidSSL CA': Unable to locally verify the issuer's authority. To connect to insecurely, use–no-check-certificate’.

It’s related to the certificate. No idea what’s wrong? How can I examine
this deeper?


Posted at Nginx Forum:,237385,237924#msg-237924

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs