S
S
Sergey Bydanov2020-12-28 18:21:41
Computer networks
Sergey Bydanov, 2020-12-28 18:21:41

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

8 answer(s)
S
Sanes, 2020-12-28
@Sanes

This is the task of the web server. This is not the case with routers.

K
ky0, 2020-12-28
@ky0

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.

D
Dmitry, 2020-12-28
@Tabletko

Routers don't do that. Or install a balancer or ask for a second address from your ISP.

P
poisons, 2020-12-28
@poisons

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.

A
Alexey Dmitriev, 2020-12-28
@SignFinder

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

M
MaxKozlov, 2020-12-28
@MaxKozlov

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

K
Keffer, 2020-12-29
@Keffer

And just get a second white IP on microt from Provo (or in another way), is it not destiny? And do not fence gardens.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question