one public ip - 3 different domains

Hi and sorry for my bad english.

now our router is linux machine(S1)(i am noob in linux) and we are changing it wit MT router.

We have two server S1 (ip 192.168.1.1) and S2(ip 192.168.1.111) and three web pages with domains domainone.com on S1, domaintwo.com on S1, domainthree.com on S2 and one public ip. so how to do redirection of each domain to different server. i have searched here but without luck. ROS version 2.9.27

upgrade to the latest version (2.9.51 or 3.23)