Hi,
I have 2 web servers in my LAN network. Each one have a private ip address. Each server has several web sites, and each web sie will have its domain name. The servers are behind an ISP router with astatic public ip.
What I need to know is if a mikrotikti router can help me cinfigure the network so that I can connect domain names to each web site in my servers. I am not refering to A records, but the possibility to connect doman name-> public ip address-> private ip adddress of server-> correct web site for the requested url domain.
I know how to configure virtual hosts in server but can mikrotik redirect me to the right private ip of server based on domain requested?
I think you are looking for a reverse proxy, as far as I know MikroTik doesn’t offer that functionality out-of-the-box.
Perhaps run Traefik in a container?
It can’t. Mikrotik router only works with L3 (IP) and L4 (TCP), you’re asking for L6. So what you need is a proper reverse proxy which would accept requests and according to Host header (and/or SNI) pass requests to appropriate backends. Most of modern web server softwares can act as reverse proxy (apache, nginx, etc.), there are some dedicated products (e.g. haproxy). They can be run in containers on Mikrotik router (if it has appropriate resources). But Mijrotik and ROS alone can not do what you wish.