LNMP has deployed a lot of domain name of the site, want to put one of the domain name Docker to do, what good way ah?

Source: Internet
Author: User

Suppose www.a.com is built with normal LNMP.

Assuming Www.b.com is running inside Docker

How do I configure it, I think of the host's nginx to forward traffic to Docker

If you need to run two domain names in Docker, you have to open two containers, a container?

Reply content:

Suppose www.a.com is built with normal LNMP.

Assuming Www.b.com is running inside Docker

How do I configure it, I think of the host's nginx to forward traffic to Docker

If you need to run two domain names in Docker, you have to open two containers, a container?

Nginx HTTP service via the host's Nginx HTTP reverse proxy to Docker

To run two domain names as long as the Nginx configuration two vhost can be, do not need to open two containers, specifically see business needs it

You can implement multiple service of Nginx in one container by setting the container alias of network

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.