A
A
Artem Nazarov2020-12-16 20:20:24
Computer networks
Artem Nazarov, 2020-12-16 20:20:24

How to deploy 2 web servers with domain binding on 1 external ip?

I have 2 web servers in my local network
WIndows web server
Debian nginx
Router
Mikrotik The

question is how to connect domains to 2 hosts without redirecting traffic to another on one of the hosts. Especially without a separate server to distribute traffic between them. Is it possible to somehow make this setting on mikrotik?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
ky0, 2020-12-16
@very_very_good_day

The "distribution" of traffic based on the HTTP host is the application level, the network hardware of the 2nd and 3rd levels does not do this.
Do not fool around and do it humanly - all HTTP / S-traffic to the server with nginx, and from there wherever it pleases in accordance with the domain.

S
Sanes, 2020-12-16
@Sanes

Nginx does this. Or HAproxy.

R
rionnagel, 2020-12-17
@rionnagel

What do you want in the end? 1 ip address and if you go to jopa.ru - then you get there, and on jora.ru - here? Then you need to google virtual hosting. You can do this using a reverse proxy on nginx for example (apache, haproxy and so on).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question