Assume www.a.com is built with normal lnmp
Assume www.b.com is running in docker
How should I configure it? What I am thinking of is that the host’s nginx forwards traffic to docker
If you need to run two domain names in docker, you must open two containers. Can one container be used?
Reply content:
Assume www.a.com is built with normal lnmp
Assume www.b.com is running in docker
How should I configure it? What I am thinking of is that the host’s nginx forwards traffic to docker
If you need to run two domain names in docker, you must open two containers. Can one container be used?
You can reverse proxy to docker’s nginx http service through the host’s nginx http service
To run two domain names, you only need to configure two vhosts with nginx. There is no need to open two containers. It depends on the business needs
You can implement multiple services of nginx in one container by setting the container alias of the network