S
S
starovoitovv2022-01-18 22:51:49
Computer networks
starovoitovv, 2022-01-18 22:51:49

How to distribute domains within a network with 1 IP?

Good afternoon!

I have 2 servers on my local network.
I also purchased a static IP address from an ISP.

When there was 1 server, I assigned this IP to the domain without problems and forwarded ports on the router.

But now I need to point 2 domains to these 2 servers, given 1 IP address.

How can I do that?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Karabanov, 2022-01-18
@starovoitovv

Raise Nginx on one of the servers and proxy requests to the second.

A
Alexander Falaleev, 2022-01-18
@suffix_ixbt

On most routers, you can set up nginx.
And then:
https://losst.ru/nastrojka-virtualnyh-hostov-nginx

D
Drno, 2022-01-19
@Drno

If the web - you need a reverse proxy, as already indicated in the comments
If not the web - just forward specific ports

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question