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

Re: use a secondary upstream as backup

2025-04-23 Thread Liam Crilly via nginx
Alternative approach would be to use error_page to catch the 5xx response (502 I think) when there are no available upstream servers and then, from a named location, proxy_pass with HTTPS to the same upstream group. Modifying the original sample config below. There is a blog post for similar use

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

Re: use a secondary upstream as backup

2025-04-23 Thread Sébastien Rebecchi via nginx
Hi Sergey, Liam! Thank you for your answers, they are really helpful! I did not think of such kinds of solutions, they should both work fine for my use case. Have a great day Sébastien Le mer. 23 avr. 2025 à 15:44, Liam Crilly via nginx a écrit : > Alternative approach would be to use error_p

nginx-1.28.0

2025-04-23 Thread Sergey Kandaurov
Changes with nginx 1.28.023 Apr 2025 *) 1.28.x stable branch. *) Bugfix: nginx could not be built by gcc 15 if ngx_http_v2_module or ngx_http_v3_module modules were used. *) Bugfix: nginx might not be built by gcc 14 or newer with -O3 -f