next upstream on timeout and 307
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_n
next upstream on timeout and 307
Hello! I have two(or more) http(rest) servers - main and backup. On error from main need redirect POST to backup, and if possible set him as main. Errors: - connection error/timeout - read timeout - 30x and 50x responses Can nginx help me?) ___ nginx