Welcome! Log In Create A New Profile

Advanced

nginx -s reload does not work with proxy directives

May 31, 2022 12:02PM
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-leave@nginx.org
Subject Author Posted

nginx -s reload does not work with proxy directives

Evald80 May 31, 2022 12:02PM

Re: nginx -s reload does not work with proxy directives

Maxim Dounin May 31, 2022 12:40PM

Re: nginx -s reload does not work with proxy directives

Evald80 May 31, 2022 01:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 61
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready