Search code examples
httpshttp-redirectazure-cdn

How to redirect to HTTPS in Azure CDN


I want to serve a PWA using Static websites in Azure Storage and Azure CDN. I need to redirect every HTTP request to HTTPS. I followed the official documentation and waited more than 4 hours but it's not working. Do I need a custom domain for the rule to work?

When SCHEMA = HTTP URL Redirect (301) Source: (.*) Destination: https://%{host}/$1


Solution

  • In the end. I had to talk with Microsoft and they unlock the config.