azureurl-rewritingazure-blob-storageazure-cdnedgecast

Azure CDN rules engine to rewrite default document and remove .html extension


I would like to use azure blob and CDN premium features but the documentation is very sparse. This is something totally doable on Amazon S3 / CloudFront.

For clarity I want *.azureedge.net/sample/index.html to equal*.azureedge.net/sample/ and *.azureedge.net/sample/test.html to equal to *.azureedge.net/sample/test

This is totally not clear and takes "up to 4 hours" to preview changes, so...

azure rules engine

After some investigation, Azure has a wrapper for Verizon Edgecast CDN, and this page looks identical to theirs...


Solution

  • Edgecast support gave me the following rules:

    enter image description here

    I created an npm package to deploy a folder and subfolders to azure storage see https://github.com/glued/yokai theres some additional information about configuring the CDN for clean urls here: https://github.com/glued/yokai/blob/master/azure.md