Questions about installing apache and nginx on one machine

Source: Internet
Author: User

I am confused about installing apache and nginx on one machine. Today I want to install apache and nginx on my own machine at the same time. This is certainly not a problem, but I am confused about one problem, when we open a Web page, which of the following is the function? During the original installation, the default listening ports of nginx and apache are both port 80, so nginx and apache can only start one, then the final result is who starts and who provides the service. Later I thought about how to change the nginx listening port so that both of them can get up. Who will provide the service in the end? Originally, port 80 is open for http by default. The ip Address: port of a website can be accessed, but port 80 provides services by default. Therefore, if apache or nginx listens to port 80, the port is omitted, all the questions are clear.

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.