My idea is to run 2 webservers on 2 seperate RPis. (One for nextcloud and the other for a tiny minecraft server. I need a webserver on the minecraft machine so that the users can turn on and off / restart the minecraft server remotely)
I could use frp or HAproxy for this, I think, but:
Is it even possibly to run the proxy on the same machine where one of the webservers a running?
And should I use 2 domains to determine which server is used (layer 4 I guess), or should I use layer 7 balancing? (like domain.example/nextcloud uses the proxy machine and domain.example/minecraft uses the other one)
What methode would you recommend for this? I think I will also write a tutorial for the forum about this, but befor I dig deeper I want to hear your opinions.
Theoretically Lighttpd could have done the job as well. But it might be not that simply to configure Lighttpd as revers proxy. There, Apache or Nginx are more common and easier to manage as proxy.