hello, Just encounter this issue on the latest version of nginx 1.22.0. Basically i added the "proxy_read_timeout 600s;" in a server directive and run "nginx -s reload". I was getting still "upstream timed out (110: Connection timed out) while reading response header from upstream, client: " after 60 seconds which is the default value. Than i said, let's restart the whole service with systemctl restart nginx and it worked..no more upstream timeout.
the whole config file: ---------------------------- server { server_name blablaerp.com; # modsecurity on; client_max_body_size 100M; location / { proxy_pass https://172.20.14.172:443; proxy_read_timeout 600s; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; } error_log /var/log/nginx/bcamprod_Errnginx.log; access_log /var/log/nginx/bcamprod_Accessnginx.log; listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/blablaerp.com/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/blablaerp.com/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; #add_header X-Robots-Tag "all"; }
_______________________________________________ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org