Since a few years I am using at least 16 dedicated servers [partly] to redirect certain services to many different back-end servers to be absolutely sure services are 24/7 available, even when a server is being replaced, failing, being upgraded or whatever.
aaPanel offers a - non free - solution based on Nginx which is working perfectly but I prefer to use HaProxy.
Link : http://www.haproxy.org/
If you like to know more about how to install this super simple service it is maybe an idea to read about in on my blog. The explanation is way too long to copy / paste it here. Hopefully you do not mind I did it this way.
Link : https://about.tomdings.com/2021/11/03/haproxy-load-balancer/
For now please enjoy your day!