azureazure-cdnedgecast

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


I come from AWS Cloudfront where I can create multiple origins for a given endpoint.

I can serve part of the url from one origin and part from another origin.

Is there anyway we can do with Azure CDN Verizon Edgecast Premium?

EDIT1: (Cloudfront Example with Single Distribution)

https://example.com/origin1/index.html <-- This is served from origin1

https://example.com/origin2/index.html <-- This is served from origin2

or like this also,

https://example.com/endpoint/index.html <-- comes from origin1

https://example.com/endpoint/index1.html <-- comes from origin2


Solution

  • Here is how I solved it. Looks horrible in the modern era, but it is what it is at the time of this writing.

    If you want to have multiple origins. Create one endpoint for each origin.

    Endpoint1 --> Origin1 
    Endpoint2 --> Origin2
    

    Create another endpoint Endpoint to create rewrite rules to those endpoints with a rewrite rule.

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

    You can create rewrite rules only to other endpoints and not to any origin.

    enter image description here Hope it helps.