I have a VPS with Ubuntu server, which is running a flask (python) web app, using UWSGI, through reverse proxy with Apache, for the domain "a.com".
Both the flask app & the Apache aren't containerized.
Now I have another web app that I want to deploy to the same server, via a docker container and I'm considering to have a 2nd nginx container to act as a reverse proxy with uvicorn, for the domain "b.com".
Is it possible to have the containerized nginx redirecting the traffic for "a.com" to Apache?
P. S. I'm aware that when nginx container is down both domains won't work, but that's not an issue.