M
M
Michael2020-12-06 16:25:29
Nginx
Michael, 2020-12-06 16:25:29

How to make friends with one IP address with several Proxmox VMs?

The problem is this, I can’t decide how to do it.
We have 1 white
IP 2 VMs on proxmox.
On one and the second, services are spinning looking at ports 80 and 443,
how to direct traffic from different sites to these machines?
According to the technical parameters, it is possible to transfer ports either to the 1st vm or to the second one
Can install and configure Haproxy or nginx proxy server? and he already, depending on the names of the sites, will transfer traffic? Or am I wrong?
Thanks in advance to those who answer!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2020-12-06
@happy-cat

Usually they make one gate, on which nginx is installed, which distributes requests among virtual machines depending on the domain name. Sometimes HTTPS and certificate reissuance are also terminated there. And inside everything is already without encryption, to simplify debugging.

S
Sanes, 2020-12-06
@Sanes

Can install and configure Haproxy or nginx proxy server

You answered your own question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question