自定义域名访问Azure Storage Blob中的内容

xiaoxiao2021-02-28  114

Azure动手实验

本文使用域名管理的CNAME功能,即添加一条CNAME记录,将一个原始域名指向一个新的地址。

资源类型

URL格式

存储账号

默认: http://trigclassic.blob.core.chinacloudapi.cn

域名绑定后: http://file.trig.site

Blob

默认: http://trigclassic.blob.core.chinacloudapi.cn/<mycontainer>/<myblob>

域名绑定后: http://file.trig.site/<mycontainer>/<myblob>

Root Container

默认: http://trigclassic.blob.core.chinacloudapi.cn/<myblob> 或者

http://trigclassic.blob.core.chinacloudapi.cn/$root/<myblob>

域名绑定后: http://file.trig.site/<myblob> 或者

http://file.trig.site/$root/<myblob>

 

创建CNAME记录

在域名注册商管理平台添加CNAME记录file.trig.site指向trigclassic.blob.core.chinacloudapi.cn

为Azure存储账号创建自定义域

登陆WindowsAzure 经典管理界面,选择要自定义的StorageAccount, 点击页面下方的"管理域",输入子域名(必须为子域名)并注册

验证新的URL

网页打开http://file.trig.site成功

转载请注明原文地址: https://www.6miu.com/read-41192.html

最新回复(0)