Pagoda panel uses different ports to access different websites
ps: Before doing the following operations, please confirm that the server security group has released the port you want to set. Important things to say three times, open the server port first, open the server port first, open the server port first! ! !
If you don’t understand, you can read my article about opening ports using Alibaba Cloud Server as an example:
https://blog.csdn.net/qq_45699990/article/details/110532328
- Click Website→Add Site
- You can fill in any domain name in the domain name (other configurations can be modified as appropriate). Here is www.test.com as a demonstration.
Add www.test.com: Pay attention to your own root directory. The web page needs to be placed under this directory.
- New site added successfully
- Click on the site name to enter domain name management:
At this point we can see that the default port of the site is 80
-
Enter the public IP (domain name) + port in domain name management:
psWe have not resolved this domain name here, this domain name is our imagination. So we need to use the public IP (if it is a real domain name, use domain name + :port ) plus the port number you want to set, here521port demonstration
-
After adding, you can delete the previous domain name (of course you don’t have to delete it)
-
At this time, we can click Security to check whether the port is open normally: (Under normal circumstances, which port is used by the site, the port that is released will show normal, if it is not used, it is unused)
-
Finally, we upload the written website program to the directory corresponding to the site and change the name to index.html. If you still cannot access it at this time, you need to restart Nginx:
9. Access through the set port number is successful: