- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在Azure中创建了一个静态网站,它给了我主要的点URL,如<mystorageaccount>.<somerandomcode>.web.core.windows.net
在浏览器中运行良好。
现在,我按照以下步骤使用自定义域,但没有那么成功。
CNAME
与我的 DNS 服务提供商 www.mydomain.com
www.mydomain.com
但它会抛出错误Failed to update storage account 'mystorageaccount'. Error: The custom domain name could not be verified. CNAME mapping from www.mydomain to any of .blob.core.windows.net,..web.core.windows.net does not exist.
我尝试了什么?1.我尝试使用mydomain.com
而不是www.mydomain.com
,它接受了并向我显示一条消息,表明传播需要 30 分钟。
大约一个小时后,当我尝试www.mydomain.com
时在浏览器中它抛出了我 The request URI is invalid with HttpStatusCode: 400.
当我尝试mydomain.com
时,服务器不可用。
ping mydomain.com
给了我一些 IP 地址,因此在 DNS 设置中我创建了带有显示 IP 地址的记录。一段时间后,mydomain.com
正在按预期工作,但是 www.mydomain.com
仍然给我 The request URI is invalid with HttpStatusCode: 400.
注意:1. 该IP地址可能不是静态的,因此使用IP创建A记录是不正确的。2.我试图指向subdomain.mydomain.com
第一次尝试本身按预期工作,但我希望它用于我的 mydomain.com
和www.mydomain.com
与 www. 合作的解决方案是什么?并且没有www。自定义域?
最佳答案
请注意 configuring a custom domain name for your Azure storage account ,
The mapping does only work for subdomains (e.g. www.contoso.com). If you want to have your web endpoint available on the root domain (e.g. contoso.com), then you have to use Azure CDN with custom domains.
使用 Azure CDN,您可以创建指向 Azure CDN 端点的 CNAME
或 A
记录。 Tutorial: Add a custom domain to your Azure CDN endpoint
关于azure - 创建自定义域以指向 Azure 存储帐户 - 静态网站无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56424256/
我想在 ESXi 主机上使用 Libvirt Java 绑定(bind)定义一个新的持久域。我为它创建了一个 xml 描述,其中我设置了(除其他外)VM 的设备及其源文件。但是,除非我在服务器上手动创
我是一名优秀的程序员,十分优秀!