Answer the question
In order to leave comments, you need to log in
Two physical servers with different domains for mikrotik?
Good afternoon
Behind one white address there are two web servers with different domains and support for https on two physical servers. It is necessary that, depending on the domain, the request goes to the desired server. I know that this can be done using nginx, but in this case, one server becomes the master, and the second slave. Is it possible to do the same with Mikrotik?
Answer the question
In order to leave comments, you need to log in
A very popular question on Toaster, stemming from an inherently incorrect architecture.
You say "one server is the master, the second is the slave", but it would be correct to make one (well, or several - for balancing) server that proxies requests and is responsible for HTTPS interaction and issuing certificates, and several - for individual domains / sites. Such a scheme (especially in combination with virtualization) granulates services and makes the infrastructure more flexible and easier to administer.
Routers don't do that. Or install a balancer or ask for a second address from your ISP.
Gentlemen, sometimes it's better to chew than to talk. This is solved with the help of keepalived. There are plenty of instructions on Google.
Yes, you can arrange it - if you can run any application that can do this - for example nginx - through any virtualization system available in your Mikrotik https://wiki.mikrotik.com/wiki/Manual:Virtualization
For example - install and run openwrt via Metarouter , which has nginx on board.
It is impossible without such things - as already mentioned above, Mikrotik does not work with the OCI application layer
Theoretically, you can try through Layer7 + DSTNAT, but I wouldn’t :) it’s
easier to layer nginx on your own project for yourself and a friend
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question