自定义域在使用 Azure CDN 时出现错误 400
我尝试通过自定义域 (cdn.mydomain.com/pictures/logo.jpg) 访问 Azure CDN 上的内容,
但收到错误 400:
<Error>
<Code>InvalidUri</Code>
<Message>
The requested URI does not represent any resource on the server. RequestId:8fa9ea29-e46f-4053-a902-5707d19e1520 Time:2011-05-13T09:40:08.3459953Z
</Message>
<UriPath>http://cdn.mydomain.com/pictures/logo.jpg</UriPath>
</Error>
但是,当通过 Azure 给定的 URL (accountname.blob) 访问时.core.windows.net)一切运行完美。
存储是几周前创建的,自定义域也是如此。我创建了一个 CNAME 并将其指向 accountname.blob.core.windows.net。
如何显示我的自定义域中的内容?
编辑:我尝试将自定义域指向 xxxxxxx.vo.msecnd.net。现在,我得到的只是一张空白页。我似乎无法弄清楚将我的自定义域指向哪里。无论如何,我最终都会遇到 http 错误 400。
I'm trying to access my content on my Azure CDN via a a custom domain (cdn.mydomain.com/pictures/logo.jpg)
But I get an error 400:
<Error>
<Code>InvalidUri</Code>
<Message>
The requested URI does not represent any resource on the server. RequestId:8fa9ea29-e46f-4053-a902-5707d19e1520 Time:2011-05-13T09:40:08.3459953Z
</Message>
<UriPath>http://cdn.mydomain.com/pictures/logo.jpg</UriPath>
</Error>
However, when accessing through the URL given på Azure (accountname.blob.core.windows.net) things work perfectly.
The storage is created a few weeks ago, and so is the custom domain. I've created a CNAME and pointed it to accountname.blob.core.windows.net.
How to show content from my custom domain?
EDIT: I tried pointing my custom domain to xxxxxxx.vo.msecnd.net. Now, all I get is a blank page. I can't seem to figure out where to point my custom domain. No matter what, I end up with a http error 400.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我没有使用过 Azure CDN,但我建议您验证您的 CNAME 设置是否正确。尝试 dig 您的 DNS 名称并检查它是否包含类似内容
I have not used the Azure CDN, but I suggest you verify that your CNAME is set up properly. Try dig your DNS name and check that it includes something like
您是否遵循了 http://blog.smarx.com/posts/using-the-new-windows-azure-cdn-with-a-custom-domain?
Have you followed the CName mapping instructions in http://blog.smarx.com/posts/using-the-new-windows-azure-cdn-with-a-custom-domain ?