Welcome! Log In Create A New Profile

Advanced

next upstream on timeout and 307

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



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready