简体   繁体   English

如何为云服务Web角色激活Azure CDN

[英]How to activate Azure CDN for cloud service web role

I have created a CDN endpoint at [id].vo.msecnd.net , and I have deployed a production mvc4 cloud service web role. 我在[id].vo.msecnd.net创建了一个CDN端点,我已经部署了一个生产mvc4云服务Web角色。

It has images in a root-level /cdn folder, but I cannot get those images to load via cdn. 它在根级/cdn文件夹中有图像,但我无法通过cdn加载这些图像。 I can access them via direct URL. 我可以通过直接URL访问它们。 For example, this works: 例如,这有效:

[site].cloudapp.net/cdn/eb303.gif

but not: 但不是:

[id].vo.msecnd.net/eb303.gif

The cdn endpoint is enabled and set up under the hosted service that the web role is in. The documentation I have been reading indicates that nothing more is required. cdn端点已启用并设置在Web角色所在的托管服务下。我一直在阅读的文档表明不再需要它。 I am using a bizspark license, but as far as I can tell that should include CDN endpoints. 我正在使用bizspark许可证,但据我所知,应该包括CDN端点。

Is there a step I am missing? 我缺少一步吗?

Thanks! 谢谢!

Sometime it may take up to 1 hour before your CDN endpoint is ready to server your content. 有时,您的CDN端点可能需要1小时才能准备好为您的内容提供服务。 It does work with any kind of deployment staging or production. 它适用于任何类型的部署分段或生产。

Do you still have the problem? 你还有问题吗? If you still have the problem you may need to contact Azure Support because if you have enabled the CDN, you should be good to go. 如果您仍然遇到问题,可能需要联系Azure支持,因为如果您启用了CDN,那么您应该很高兴。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM