Build personal blog (four) - Configure SSL Certificates

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;
Here Insert Picture Description
2. Download the certificate has been issued
Here Insert Picture Description
3. Select the type of server nginx Download this line (here I am when you have installed the server nginx, if not, install)
Here Insert Picture Description
4. extracting file downloaded, new cert nginx folder in the folder directory, and extract the files to this path;
Here Insert Picture Description
5.hexo generating a static document, performed in this blog hexo init blog folder hexo generate, at this time will generate a public folder;
Here Insert Picture Description
6.vim nginx.conf open file, add the following configuration
Here Insert Picture Description
7. configure forwarding, the rewrite ^ HTTPS: // $ $ server_name Permanent. 1; (*.)
Here Insert Picture Description
8. the execution ./nginx -s reload, get;

Published 11 original articles · won praise 9 · views 2464

Guess you like

Origin blog.csdn.net/qq_35508835/article/details/104426406