Answer the question
In order to leave comments, you need to log in
How to forward the same port to different domains in Mikrotik?
Hello gentlemen,
I now have the following task:
One external IP address, two different subdomains are registered to this IP address.
this IP address is assigned in microte and plows.
One subdomain is fastened and plows, and the second goes to the first redirect immediately.
Nginx is installed on every LAN server
. Is this possible in Mikrotik?
Answer the question
In order to leave comments, you need to log in
Mikrotik will not destroy it.
You need a proxy.
Set up a proxy on one of the servers, traffic to the second server will go (proxied) through the first one.
Forward to one server, raise nginx there and resolve it to different servers.
You can try through the l7 firewall. Make two labels and select layer7 protocol in nat advanced.
With a probability of 99%, it can be done by installing nginx in openwrt inside MetaROUTER on Mikrotik
- Mikrotik allows you to run "virtual" routers on itself (MetaROUTER feature)
- MetaROUTER supports openwrt
- you can install nginx on openwrt
- processing the HOST header (aka "domain") - this is one of the main features of nginx
. Here they do something similar, but more complicated (they generally raise the site in nginx inside MetaROUTER) - https://habr.com/en/post/248009/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question