我们知道国外的诸如阿里云腾讯云,如果我们想使用它们家的cdn的话
域名必须要申请备案
有没有免备案使用cdn的方法,这里推荐大家使用cloudflare
以腾讯云域名如何使用cloudflare的cdn为例
首先域名要解析到你自己的服务器,以www.yuanchengzs.xyz为例

然后登录vps `47.91.24.184`配置`nginx`服务器
```
.
.
.
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _ www.yuanchengzs.xyz;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
.
.
.
```
执行`nginx -s reload` 重启`nginx`
接着登录`https://dash.cloudflare.com/login`
进入`https://dash.cloudflare.com/5787b58e246ced2d87441226c1424c65`
添加站点

记得要去掉`www.`不能会出现以上的错误提示
选择免费套餐

找到dns

然后进入腾讯云域名注册控制台`https://console.cloud.tencent.com/domain/manage/domain-32swcvhq/basicinfo`
找到你的域名后,点击管理,然后修改域名的DNS服务器为cloudflare提供的


可以通过规则来设置某一具体路由