Pagoda panel uses different ports to access different websites (Pagoda uses ports to set up multiple websites)

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

  1. Click Website→Add Site
    step one
  2. 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.
    The interface after clicking Add Website
    Add www.test.com: Pay attention to your own root directory. The web page needs to be placed under this directory.
    Add www.test.com
  3. New site added successfully
    Insert image description here
  4. Click on the site name to enter domain name management:
    Click on the site name
    Domain name management interface after adding

At this point we can see that the default port of the site is 80

  1. 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
    Add to

  2. After adding, you can delete the previous domain name (of course you don’t have to delete it)
    Added successfully

  3. 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)
    Check whether the port is normal
    unused port

  4. 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:
    Upload web page
    Insert image description here

Restart Nginx
9. Access through the set port number is successful:
Access successful

Guess you like

Origin blog.csdn.net/qq_45699990/article/details/110528717