Welcome! Log In Create A New Profile

Advanced

next upstream on timeout and 307

This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
dronord
March 07, 2024 03:28AM
It's ok?

upstream rest {
server s1;
server s2;
}

server {
listen 80;
server_name _;
root /usr/share/nginx/html;

proxy_connect_timeout 3s;
proxy_read_timeout 3s;

proxy_intercept_errors on;
proxy_next_upstream non_idempotent http_500;
proxy_next_upstream_timeout 3s;

location / {
error_page 302 307 500 502 504 = @redirect;
proxy_pass http://rest;
}

location @redirect {
proxy_pass http://rest;
}
}
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

next upstream on timeout and 307

dronord March 07, 2024 03:28AM



Online Users

Guests: 102
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready