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?
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.
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.