如何在Microsoft Azure CDN上设置多个存储帐户和一个自定义域 [英] How can I set up multiple storage accounts and one custom domain on Microsoft Azure CDN

查看:80
本文介绍了如何在Microsoft Azure CDN上设置多个存储帐户和一个自定义域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近决定冒险进入Azure的世界.我真的跌跌撞撞地进入了第一阶段.到目前为止,这是我所做的:

I have recently decided to venture into the world of Azure.. I have stumbled at the 1st stage really. Here is what I have done to date:

1).我创建了一个CDN配置文件,并使用默认设置对其进行了配置.2).我创建了2个存储帐户(一个名为"css",一个名为"images")3).我创建了一个CDN端点-并选择了图像"存储帐户作为原始主机名".

1). I created a CDN Profile and configured this using default settings. 2). I created 2 storage accounts (one called 'css' and one called 'images') 3). I created a CDN endpoint - and picked 'images' storage account as 'origin hostname'.

这是我无法浏览的CDN终结点URL上的图像的地方,但是我看不到如何为"css"存储帐户使用相同的自定义域?

This is where I get stuck as I can browse and see images on the CDN endpoint URL, however I cannot see how to use the same custom domain for the 'css' storage account?

本质上,我试图拥有1个自定义域(例如cdn.mysite.com),并能够使用"cdn.mysite.com/css/blobname"和"cdn.mysite.com/images/blobname"分别获取我的图像和CSS文件.

In essence I am trying to have 1 custom domain (eg. cdn.mysite.com) and be able to use 'cdn.mysite.com/css/blobname' and 'cdn.mysite.com/images/blobname' to get my images and css files respectively.

这可能吗?还是我使事情复杂化了,应该只有一个存储帐户,其中包含我所有的图像和CSS字段?

Is this possible? Or m I over complicating things and should have just one storage account with all my images and css fiels in it?

谢谢-在尝试其他方法之前,还有27天的试用期!

thanks - still have 27 days of trial to go before I try something else!

推荐答案

您肯定已经使事情变得复杂了!不需要单独的存储帐户,至少在您遇到严重的性能问题之前是这样,在这种情况下,对于映像和CSS,您可能会遇到更大的问题.

You are definitely over complicating things! There is no need for separate storage accounts, at least not until you are having significant performance issues, at which case, for images and css, you've likely got bigger issues.

只有一个存储帐户,并定义了该文件夹结构.

Simply have a single storage account, with that folder structure defined.

这篇关于如何在Microsoft Azure CDN上设置多个存储帐户和一个自定义域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆