I made my personal server SSL encrypted, so that only port 443 is accessible to the outside world. However, in doing so, I locked my web apps from seeing the outside world.
The gist of it is that I have two Docker chains such that <domain>:2019
and <domain>:2020
are two separate web applications that are each served with Nginx containers, and output correctly on my local machine. I want to have <domain>:2019
output to example1.com
and <domain>:2020
output to example2.com
from using the host machine's Nginx service. How would I go about doing this?
[edit]
The Docker chains have respective Nginx containers that look like:
nginx:
container_name: domain_nginx
build:
context: ./nginx
volumes:
- static_volume:/usr/src/domain_django/static
ports:
- "2019:80"
depends_on:
- django
Where the Nginx container outputs to 127.0.0.1:2019
. I want a user going to example1.com
to see the 127.0.0.1:2019