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