Open full site https through Cloudflare

Open full site https through Cloudflare

After Cloudflare adds a domain name, it will automatically generate a universal certificate, quickly open the whole site HTTPS, the server does not need to make any changes, you can also choose a variety of open modes

Sign up for a Cloudflare account

Registered address: https://www.cloudflare.com
Insert picture description here

After registering and logging in, add the domain name, as shown in the figure below
Insert picture description here
and select the package type. Generally, you can choose free:
Insert picture description here

Modify DNS

The following is based on the domain name you purchased. Go to the domain name management background to modify the DNS. The free package can only configure Cloudflare through DNS. The paid package or Partner can be configured through CNAME. First, click DNS to view the DNS assigned by Cloudflare to yourself:

Insert picture description here

Take the Xinnet domain name as an example, log in to the domain name backend, select Domain Management=>Modify DNS, and select non-newnet DNS, and then fill in the two DNSs allocated by Cloudflare into the primary and secondary DNS respectively, and click Save. Generally, 1 Effective in -2 days.

Insert picture description here

Turn on HTTPS

Click the SSL/TLS button, there are generally four modes available:

  • 1.Off (not secure)
    is not open
  • 2. Flexible
    open the browser to <->Cloudflare
  • 3.Full
    open browser<->Cloudflare<->server
  • 4. Full (strict)
    open the browser <->Cloudflare<-> server trust certificate, more strict
    Insert picture description here

After the above series of operations, you only need to wait for https to take effect. After Cloudflare's DNS resolution is completed, DNS, CDN, and HTTPS can be successfully turned on. However, generally free products are somewhat limited. There are no paid packages in China. If there is no fast CDN node, CDN will not have the effect of acceleration. If you are pursuing performance and not bad for money, you can use the enterprise version or some domestic partners.

Access error

Insert picture description here

The solution can refer to:

https://support.cloudflare.com/hc/zh-cn/articles/115003011431#522error

Guess you like

Origin blog.csdn.net/Lin_Hv/article/details/106614804