node.js - Alibaba Cloud deploys apache and nodejs at the same time, which one takes priority when accessing the public IP address?
漂亮男人
漂亮男人 2017-05-16 13:38:35
0
2
577

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?

漂亮男人
漂亮男人

reply all (2)
左手右手慢动作

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.

    迷茫

    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.

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!