如何使用 Azure CDN Verizon Edgecast Premium 创建多个来源?

How to create multiple origins with Azure CDN Verizon Edgecast Premium?

我来自 AWS Cloudfront,在这里我可以为给定端点创建多个源。

我可以从一个来源提供一部分 url,从另一个来源提供一部分。

无论如何我们可以使用 Azure CDN Verizon Edgecast Premium 做些什么?

EDIT1:(单一分发的 Cloudfront 示例)

https://example.com/origin1/index.html <-- 这是从 origin1 提供的 https://example.com/origin2/index.html <-- 这是从 origin2

提供的

或者也这样,

https://example.com/endpoint/index.html <-- 来自 origin1 https://example.com/endpoint/index1.html <-- 来自 origin2

我是这样解决的。在现代看起来很可怕,但在撰写本文时就是这样。

如果你想有多个来源。为每个起点创建一个端点。

Endpoint1 --> Origin1 
Endpoint2 --> Origin2

创建另一个端点 Endpoint 以使用重写规则为这些端点创建重写规则。

Endpoint3/origin1 rewrite to Endpoint1
Endpoint3/origin3 rewrite to Endpoint2

您只能为其他端点创建重写规则,而不能为任何来源创建重写规则。

希望对你有帮助。