How to redirect web traffic to different ports by site name.

Hello,

I have a web server in internal network (192.168.1.1) with running IIS on port 80 and Apache on port 90. Currently all incomming requests to port 80 redirected to 192.168.1.1 with port 80 (IIS) using distination-nat rule. It’s possible using RouterOS transparent redirect few sites to port 90 (Apache) based on requested domain name ?

In other words I need transparent redirect to port 80 for domain1.com and transparent redirect to port 90 dor domain2.com

Thank you for any ideas in advance.

Regards,
Andrejs.

There is not dns-name matcher in the firewall, only if you can use IP address of the server. One redirect to 80, second to 90.