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.
Thanks in advance!
Quite a lot of things are possible. Simply use the web server of Nextcloud as reverse proxy. This way, no additional software would be needed.
Edit: nevermind, I will try something else first.
Original message: I’m still on lighttpd. Can I just remove lighttpd and install nginx or what is the recommend method to switch the webserver?
After some considerations I think the simplest and easiest solution I can live with is, to let the router do the work with some simple port forwarding
yes that’s possible and might be easiest
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.