Comment on What path does data take when connecting to a domain at my address?

yaroto98@lemmy.world ⁨1⁩ ⁨day⁩ ago

Depends, you can set it up a few different ways.

  1. you can set the dns so each subdomain resolves to a different port with your ip, in which case your router can forward that port to any local address on your network.

  2. reverse proxy, this is most common. You use a service to do the translating for you. Your router forwards all requests on port 80 and 443 to your reverse proxy. The reverse proxy takes requests for subdomain1 and forwards it to the associated ip/port locally.

original
Sort:hotnewtop