Redirect https traffic to server/port based on inbound url

Hi 

I'm not sure if this is possible and im getting confused between WAF's, NAT's and path specific routing...

What i'd like to achieve:

https://site1.mydomain.com is forwarded to https://internalserver:1234

https://site2.mydomain.com is forwarded to https://internalserver:1235

https://site2.mydomain.com is forwarded to https://internalserver:1236

Firstly is this possible or am i looking for a lost cause? 

Secondly, if it is possible, could you point me in the direction of an article or a video showing details on how to configure this. 

Thanks

Pete



Added TAG
[edited by: emmosophos at 7:53 PM (GMT -8) on 18 Feb 2021]