Azure CDN from Verizon Premium HTTP to HTTPS redirect
I have created an Azure CDN endpoint (like example.azureedge.net) using Verizon Premium Pricing Tier.
I want to create a rule to redirect to the HTTPS protocol (like https://example.azureedge.net) whenever a user uses the HTTP protocol (like http://example.azureedge.net).
How can I achieve this using the rules engine of Azure CDN from Verizon Premium?
The Medium article that Steve linked seems to have the answer. To quote the main steps:
From the Azure Portal, Select the CDN profile
Click on Manage to open the configuration page
From the HTTP Large menu, select Rules Engine
Update the Name / Description i.e. HTTP to HTTPS redirect
Change the Always dropdown menu to Request Scheme
Click the Features+ button and select URL Redirect
Within the pattern text field enter
(.*)In the Destination text field enter
https://%host/$1Click Add
Comments
Post a Comment