search

Home  >  Q&A  >  body text

node.js - Alibaba Cloud deploys apache and nodejs at the same time, which one takes priority when accessing the public IP address?

As shown in the picture, I have installed apache on Alibaba Cloud and deployed a nodejs project. Which one will appear when I access the public IP address, the apache page or the nodejs page?

漂亮男人漂亮男人2752 days ago635

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-05-16 13:40:35

    Just point to different ports.

    If the accessed IP does not have a port, it is port 80. Then it depends on who uses port 80 for apache or nodejs


    Also, try it yourself and you’ll be fine.

    Maybe it will report an error saying that port 80 is occupied or something like that.

    reply
    0
  • 迷茫

    迷茫2017-05-16 13:40:35

    Direct access through IP access is port 80 by default. Apache and nodejs projects can only have one listening port 80, so whichever one listens to port 80 will display which page when accessing the public IP.

    reply
    0
  • Cancelreply