0
So here is the situation: I purchased a domain with GoDaddy (Jbc.ca) GoDaddy forwards to my no-ip domain currently as I have a dynamic IP address (however it does not change that frequently- so I could in theory have it forward directly to my IP address).
Now here is where it gets a little more complicated. I run a web server (Apache) on port 80 which is displayed when you visit (jbc.ca) I also have several other services that run on the same system: Plex- port 32400; Tautulli on port 7777; Ombi on port 5000; Lidarr on port 8686, Remotely Anywhere PC Access on 7000 and a separate Web Server (Microsoft IIS on port 9024).
Currently to access any of these services other than port 80 I have to do as follows: "http://Jbc.ca:Port#" ; so for example to access Ombi I have to type in http://jbc.ca:5000.
What I would like is to have my domain with subdomains for each port- so for example ombi.jbc.ca would in theory load port 5000 on the server, but would display ombi.plex.ca instead of redirecting and exposing the port number. Ra.jbc.ca would load port 7000 and so on...
I have read that this can be done with reverse proxy via apache or nginx (as I am running mamp pro for my main server) as well as IIS, however I have no clue how to accomplish this as to what needs to be changed/added on the server, which server would be best to accomplish this as well as what I'd have to modify on my GoDaddy domain.
Hopefully someone can help as I am totally stumped at this point.
Thanks in advance.
No offense, but you have a way to go before you are up-to-speed (but you are on the right track). First up might be understanding DNS. DNS does not forward anything - it provides lookups - a distributed database relating to domains. You should brush up on A records and CNAMES to undrstand how godaddy and no-ip play. (you will then understand that godaddy is almost irrelevant here and no-ip simply allows DNS to resolve an domain to an IP, and ports are not part of this, nor is there any forwarding going on) – davidgo – 2019-06-11T11:35:30.440
The next thing is to set up all the subdomains in DNS (or just wildcard the domain, using a cname, but there are gotchas with CNAMES). At this point hopefully all subdomains go to the same IP. – davidgo – 2019-06-11T11:39:32.687
At this point you set up something to answer the request, pick up the domain name and make a request to a new resource on a port. This is the reverse proxy. There are many to choose from. I use Apache +mod-proxy. Step 1 is to set up virtualhists for each subdomain so the requests are handled differently. Step 2 is to enable mod-proxy and step 3 is to set up an appropriate pair of proxypass and proxypassreverse lines for each virtualhost. – davidgo – 2019-06-11T11:44:20.687