nginx -s reload does not work with proxy directives

evald ibrahimi evald80 at
Tue May 31 16:01:01 UTC 2022


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 more upstream timeout.

the whole config file:
server {

# modsecurity on;

client_max_body_size 100M;
location / {
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/; #
managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/; #
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";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list