I know this is very basic, but I'm very new to the reverse proxy, network admin world. Could someone provide a high level overview how a reverse proxy knows which server/port to route traffic to? Does it use a HTTP Referer/Origin Header or what?a
Let's say I have a public facing reverse proxy server on my domain: example.com. I want to have maaany subdomains, but do I have to have a public IP address for each subdomain?b Or can I use DNS entries to route that subdomain, e.g.: pl.example.com to my reverse proxyc, which will then route the pl subdomain to a port 1234 on any machine in my private network, which can also be the reverse proxy itself but on another port?d
Here comes what I don't understand, when I route the traffic from pl.example.com to the reverse proxy, how does it know that the traffic came from that particular domain (pl.example.com)?e
I've marked each question with a superscript for easy answering. Feel free to group them together and just link me to something. Thank you!