Re: use a secondary upstream as backup

2025-04-23 Thread Sébastien Rebecchi via nginx
m: nginx on behalf of Sergey A. Osokin < > o...@freebsd.org.ru> > Sent: 23 April 2025 14:26 > To: Sébastien Rebecchi > Cc: nginx mailing list > Subject: Re: use a secondary upstream as backup > > CAUTION: This email has been sent from an external source. Do not click &

Re: use a secondary upstream as backup

2025-04-23 Thread Liam Crilly via nginx
; error_page 502 @try_secondary; } location @try_secondary { proxy_pass https://secondary_upstream; } From: nginx on behalf of Sergey A. Osokin Sent: 23 April 2025 14:26 To: Sébastien Rebecchi Cc: nginx mailing list Subject: Re: use a secondary

Re: use a secondary upstream as backup

2025-04-23 Thread Sergey A. Osokin
Hi Sébastien, hope you're doing well. Thanks for the question. On Wed, Apr 23, 2025 at 12:07:21PM +0200, Sébastien Rebecchi via nginx wrote: > backup, meaning NGINX will only use them if all primary servers fail. > > In my case, I have some servers running over HTTP and would like to > configure

use a secondary upstream as backup

2025-04-23 Thread Sébastien Rebecchi via nginx
Hello, I understand that within an upstream block, some servers can be marked as backup, meaning NGINX will only use them if all primary servers fail. In my case, I have some servers running over HTTP and would like to configure HTTPS servers as backups. However, since an upstream can only use on