Background
I currently have several low power servers running on my local network. They all perform different services, but some of them are similar. I also own 3 domains and have many subdomains for these domains.
So what is your problem?
Well, as I said, some of my services are REALLY similar, and work on the same port (I have an Owncloud server on one, and my site is hosted on the other). This means that if I want my owncloud.mydomain.com to go to my Owncloud server and www.mydoamain.com to go to my web server, I have a bit of a problem. Both subdomains just go to my house, and the services use the same port. I cannot split traffic into a subdomain.
edit: it should also be able to redirect many types of traffic, such as SSH, HTTPS and FTP
Possible solutions
I have at least just starting another service on different ports, but not optimal AT ALL. This means that itβs weird to watch, it will be more difficult for people to use any of my services, and, as a rule, I will not feel good.
I thought of similar services on the same server, but some of them are pretty dinky servers. I would rather not do anything like that. Also, since the servers are a bit old, it's nice to know that if one of them dies, at least I will have other services. I do not think this option is good.
Best possible solution: I heard that there is a service with the exact functionality that I am looking for is called haproxy . My only problems with this is that I donβt know how to use this service, and I especially donβt know how to get from it I want.
My last question
I would like haproxy to work, I just need to know how to configure it the way I need. If someone has a link to a tutorial on how to do what I want specifically (I already learned how to make haproxy work, just not the way I want), then I would be very grateful. I would look for it myself, but I already have it, and I donβt even know what to look for. Can anyone help me out?
thanks