Configure SSL Certificates
In the build personal blog (a) -Hexo build personal blog , we have set up their own blog, in building a personal blog (b) -Hexo editor choose , we have the hexo editor installed, set up a personal blog (three ) -Themes replacement , we have replaced the themes, and now we have to configure SSL certificates.
First, my server and domain names are in Ali cloud purchase, if it is on other platforms purchase server may not be the same with me the following configuration.
1. First enter the SSL Certificate Management option to purchase a certificate, select the free version, buy now;
2. Download the certificate has been issued
3. Select the type of server nginx Download this line (here I am when you have installed the server nginx, if not, install)
4. extracting file downloaded, new cert nginx folder in the folder directory, and extract the files to this path;
5.hexo generating a static document, performed in this blog hexo init blog folder hexo generate, at this time will generate a public folder;
6.vim nginx.conf open file, add the following configuration
7. configure forwarding, the rewrite ^ HTTPS: // $ $ server_name Permanent. 1; (*.)
8. the execution ./nginx -s reload, get;