Port based routing

is it possible to implement the following configuration with Tyk?
I have two endpoints: https://host:port1/path and https://host:port2/path (the only difference is port), then load balancer routes them to Tyk gateway on port 8080 (http)
Tyk should next route these two endpoints to different target URLs: http://private_host/path and http://private_host2/path