我在 Azure Blob 存储中有图像,我可以通过以下 URL 公开访问这些图像:
https://app.blob.core.windows.net/images/share-img.png
我已在存储帐户门户中添加了自定义(子)域 storage.mydomain.net
并使用 CNAME 方法对其进行了验证,然后我尝试使用自定义域 URL 访问图像,例如:
http://storage.mydomain.net/images/share-img.png
我收到以下 404 消息
The requested content does not exist.
HttpStatusCode: 404
ErrorCode: WebContentNotFound
RequestId : 5ce62ecb-e01e-0050-1941-039626000000
TimeStamp : 2019-05-05T12:56:11.3927925Z
有人知道我做错了什么吗?
注意事项:
我认为我不需要为此添加 CDN,因为我不会提供服务 通过 HTTPS 传输图像(尚未)。
我已在门户配置部分禁用安全传输。
- 以上网址仅作为示例
最佳答案
verified it using the CNAME method
你是如何验证的?
您可以使用dns lookup tool检查您的子域是否有效。
以下是我使其发挥作用的所有步骤。
1.我从Azure购买了域名。所以我只是为存储端点添加了一个 CNAME。
关于azure - 无法使用自定义域访问 Azure blob,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55992265/