Github Pages enables HTTPS and CDN image acceleration

20170621 update: It is best not to use 360's website guard, the access acceleration is too poor, it is not as fast as directly accessing the source website. Oops! ! ! !

Since the domain name that comes with Github Pages supports enabling the HTTPS service, the custom domain name does not support enabling the HTTPS service, and you need to find a way to enable the HTTPS service. Considering that domestic access to foreign servers is still too slow, consider using CDN acceleration to enable HTTPS services.

<!--more-->

Compared with many domestic CND acceleration manufacturers, such as: Baidu Cloud Acceleration, Acceleration Music, etc., we finally chose 360 ​​Website Guard for the following reasons:

  • HTTPS can be turned on for free, but Baidu Cloud Acceleration requires a professional version.
  • Comes with website security protection, although it is useless for static sites
  • Provide free filing service
  • Free CDN acceleration, my image resources are stored on Qiniu Cloud , HTTPS traffic needs to be charged, which can save traffic and enable HTTPS for free

The main operation steps are as follows:

  • Register a Github account and build a Github Pages service. There are many such tutorials on the Internet. You can use Baidu or Google by yourself.
  • Registering a 360 website guard account, let me say something here, you need real-name authentication, and you need to take pictures
  • To generate your own SSL certificate, local tyrants can buy the certificate directly, or like me, generate a free certificate yourself, the steps are as follows:
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt/
./letsencrypt-auto certonly --manual --email [email protected] -d laoyuan.me
  • When prompted in the last step, enter Y and press Enter; then you will be prompted to enter the specified path file on the website, save the specified content, create relevant files as required, and then transfer them to the directory specified by the website, and then press Enter to start the official certification and generate. Finally, copy the cert.pem and privkey.pem files, change the names to cert.crt and privkey.key, and upload them to the acceleration configuration of 360 Website Guard.

However, it is very strange at present that 360 Website Guard CDN-accelerated websites are prone to 404 errors, and the website return rate is particularly high.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325123095&siteId=291194637