ShuDudu's Home was started in 2011, but the web data is lost, so now begin again, I would like to make some friends, I hope you like ShuDudu's home.
Current position: ShuDudu > Life >

About pagoda one site binds multiple domain names pagoda ssl certificate configuration tutorial

Monday on August 2nd, 2021Life

Today, I found that there is still a domain name https://wppt.top/in my domain name library. Thinking that it is useless is also a waste, I added it to the resource site [blog], but after the addition, I found that the added domain name did not have a ssl certificate configuration, and the browser would prompt [unsafe] warning to appear. Of course, I couldn't stand this, so I went to Google for a search, and sure enough, there was, but basically all of them were reprinted with one person. There are some areas that are not clear, which will make it difficult for beginners, so share the configuration records this time.

first of all, you must resolve the domain name to be added to the server's IP,. Secondly, add the domain name you want in the settings of the pagoda panel domain name. After adding it, try to see if the domain name can be opened, and then proceed to the next step. After the

domain name can be opened, I apply for the SSL certificate. I apply in FreeSSL to see where I like to apply. The application is quick. In a few minutes, the verification can be passed. In a second, after downloading the certificate, decompress it, rename the certificate file at the end of

.crt to {fullchain.pem}
.key file to {privkey.pem}

next, see what kind of server you have. Mine is Nginx, to open the site configuration file and check the certificate path. My certificate storage path is
/www/server/panel/vhost/cert/site
. In this path, find the corresponding path in the pagoda panel, create a new domain name folder, upload the two newly renamed files to

, and then find the site configuration file, choose to copy all of them, paste them at the end, and then modify the corresponding parameters. Find

 ssl_certificate/www/server/panel/vhost/cert/xxx.com/fullchain.pem;Ssl_certificate_key/www/server/panel/vhost/cert/xxx.com/privkey.pem; 

replace the URL with the newly acquired domain name, and then look for

 listen 80;Listen 443 ssl http2;Listen [::]: 443 ssl http2;Listen [:]: 80;Server_name xxx.com;Index index.php index.html index.htm default.php default.htm default.html;Root/www/wwwroot/xxx.com; `

change server_name xxx.com; to the new domain name just now (note here that there can only be one domain name in each configuration, that is, there can be only one domain name in each server
{.}, otherwise it will not work.)

the next step is to save, then restart the server and try to OK after restarting.

Copyright Protection: ShuDudu from the original article, reproduced Please keep the link: https://www.shududu.com/life/About-pagoda-one-site-binds-multiple-domain-names-pagoda-ssl-certificate-configuration-tutorial.htm