Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question