<div dir="ltr"><div>Hello,</div><div><br></div>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.<br><br>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 one protocol, this setup isn't currently possible.<br><br>One solution I had in mind was to define a primary HTTP upstream and fall back to a secondary HTTPS upstream if the first one fails, meaning all servers in the primary upstream are unavailable. It could give something like the example below. However, I couldn't find a way to implement this in the NGINX documentation.<br><br>Is there a feature like this planned, or one that could be considered for future development?<br><br>Thank you,<br>Sébastien<br><div><br></div><div>---</div><div><br></div><div>upstream main_upstream {<br></div><div>  server <ip here>:80</div><div>  server <ip here>:80</div><div>  <etc></div><div>}</div><div><br></div><div><div>upstream secondary_upstream {<br></div><div>  server <ip here>:443</div><div>  server <ip here>:443</div><div>  <etc></div><div>}</div></div><div><br></div><div>location / {</div><div>  proxy_pass <a href="http://main_upstream">http://main_upstream</a> <b>backup <a href="https://secondary_upstream">https://secondary_upstream</a></b>;</div><div>  <etc></div><div>}</div><div><br></div><div><br></div></div>