D
D
Dmitry Baskakov2021-10-21 10:01:23
Docker
Dmitry Baskakov, 2021-10-21 10:01:23

How to correctly organize a reverse proxy in docker?

There is a VPS to which you need to attach the 2nd site, the first one lies on the 80th port.

The Internet suggested that you can use a reverse proxy, that different container assemblies worked correctly on the same system. However, these internets did not suggest exactly how to set up this reverse proxy.

Therefore, the question is: how to organize a reverse proxy through nginx inside docker? Is there any way to give docker access to the global network of the current machine?

Note: all this, including ssl certificates and wiretapping on ports 80 and 443

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2021-10-21
@MaxDukov

and Virtual Host will not work?
https://www.keycdn.com/support/nginx-virtual-host
, depending on the name, the server will give one or another server.
in fact, the reverse proxy works essentially exactly the same, you just need a server to which the reverse proxy will forward the traffic. And so all in 1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question