nginx -s reload does not work with proxy directives
evald ibrahimi
evald80 at gmail.com
Tue May 31 16:01:01 UTC 2022
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";
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20220531/1e2f751f/attachment.htm>
More information about the nginx
mailing list