配置域名绑定实现CDN加速

<p class="shortdesc">利用OBS域名管理功能可以一键开通CDN加速服务。</p> <section class="section prereq" id="dc_obs_cfg_0005__prereq_fd3_kbq_mlb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div> <p class="p">已完成存储空间的创建,请参见<a class="xref" href="/ssr/help/storage/obs/quick_start.createstoragespace" target="_blank">创建存储空间</a>。</p> </section> <section class="section context"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div> <p class="p">在CDN中添加自定义域名,并将回源站点指定到OBS的桶存储,这样CDN将会把OBS的访问域名作为源站,向边缘节点分发数据,提高用户访问的响应速度。</p> </section> <section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd"> 登录<a class="xref" href="/console/obs/bucket/list" target="_blank">对象存储OBS控制台</a>。</span> </li><li class="li step stepexpand"> <span class="ph cmd">在<span class="keyword wintitle">Bucket列表</span>中,找到目标存储空间,单击<span class="ph uicontrol">Bucket名称</span>。</span> </li><li class="li step stepexpand"> <span class="ph cmd">选择<span class="ph uicontrol">域名管理</span>页签。</span> </li><li class="li step stepexpand"> <span class="ph cmd">单击页面右上角的<span class="ph uicontrol">绑定用户域名</span>。</span> </li><li class="li step stepexpand"> <span class="ph cmd"> 在弹出的<span class="ph uicontrol">绑定用户域名</span>页面,进行如下配置:</span> <div class="itemgroup info"> <img class="image" id="dc_obs_cfg_0005__image_mqv_tbq_mlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20241210163932-161976db9c9e.png"> <ul class="ul" id="dc_obs_cfg_0005__ul_s3k_nbq_mlb"> <li class="li"><span class="ph uicontrol">域名</span>:用于输入要绑定的域名名称,例如:www.aaa.com。</li> <li class="li"><span class="ph uicontrol">业务类型</span>:针对实际要加速的业务类型进行选择,不同的业务类型有不同的流量分配,包括图片小文件加速、大文件下载加速和视音频点播加速。</li> <li class="li"><span class="ph uicontrol">源站端口 </span>:选择加速源端口类型,包括80(http)和 443(https)。</li> </ul> </div> </li><li class="li step stepexpand"> <span class="ph cmd">完成后,单击<span class="ph uicontrol">确定</span>。</span> </li></ol></section> <section class="section result" id="dc_obs_cfg_0005__result_cfn_4bq_mlb"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div> <p class="p">以上步骤完成后,系统会先进行用户域名审核,审核通过后才能生效。并在域名管理列表中显示出来。您也可以通过CDN控制台中的<a class="xref" href="/console/cdn/domain/list" target="_blank">管理CDN加速</a>查看审核状态。</p> </section> <section class="section postreq" id="dc_obs_cfg_0005__postreq_g31_pbq_mlb"><div class="tasklabel"><h2 class="doc-tairway">后续操作</h2></div> <p class="p">审核通过后,您需要将生成的CNAME在DNS服务器上进行注册。如果您使用的DNS服务商为平安云,您可通过如下步骤添加CNAME记录。</p> <ol class="ol" id="dc_obs_cfg_0005__ol_b1h_qbq_mlb"> <li class="li">登录<a class="xref" href="/console/domainService/overview" target="_blank">云解析DNS控制台</a>。</li> <li class="li">单击左侧导航栏中<span class="ph uicontrol">域名解析</span>。</li> <li class="li">找到目标域名,单击<span class="ph uicontrol">操作</span>列中的<span class="ph uicontrol">管理</span>。<img class="image" id="dc_obs_cfg_0005__image_mfk_ldq_mlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20241210163933-156a9e2e9129.png" width="750"></li> <li class="li">在目标域名解析页面,单击页面右上角的<span class="ph uicontrol">+添加</span>。在弹出的<span class="ph uicontrol">添加解析记录</span>中,配置如下内容:<img class="image" id="dc_obs_cfg_0005__image_lrx_mdq_mlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20241210163933-157f5b8b9a7f.png"><ul class="ul" id="dc_obs_cfg_0005__ul_jmv_qbq_mlb"> <li class="li"><span class="ph uicontrol">主机记录</span>:主机记录指域名前缀。例如,域名为www.aaa.com,则填写www。</li> <li class="li"> <span class="ph uicontrol">记录类型</span>:选择CNAME类型。</li> <li class="li"><span class="ph uicontrol">线路类型</span>:用于DNS服务器在解析域名时,根据访问者的来源,返回对应的服务器IP地址。建议选择<span class="ph uicontrol">默认</span>,系统自动选择最佳线路。</li> <li class="li"><span class="ph uicontrol">记录值</span>:根据记录类型填写,此处填写在绑定域名后生成的CNAME值。</li> <li class="li"><span class="ph uicontrol">优先级</span>:配置解析优先级。用户发起解析请求时,解析服务根据用户请求的域名和用户的IP决定返回的解析结果。如果在相同域名、相同线路下配置了多条解析记录,服务会根据配置的优先级排序返回多个解析结果。取值为1-100,值越小优先级越高。</li> </ul></li> <li class="li">完成后,单击<span class="ph uicontrol">确定</span>。</li> </ol> </section>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products