M
M
mcrack2021-02-22 10:56:50
Nginx
mcrack, 2021-02-22 10:56:50

How to make a reverse proxy to another ip in Docker nginx?

Good afternoon, I need that when I go to the a.com domain, I am sent to the server 192.168.1.10, and when I go to b.com, I am sent to 192.168.1.20.

I also need, for example, a.com to work over http, and b.com over https, and a certificate from letsencrypt is generated.

I didn’t find such a solution on the Internet, I found that there was auto-generation and https, and that there was a forwarding to the container, but I need to forward to ip through proxy_pass and do not poll all domains https, but only some.

Has anyone already encountered this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-02-22
@ky0

This is standard nginx functionality. At you it is impossible to write a config or what?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question