2

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?

7

1 Answer 1

1

The Medium article that Steve linked seems to have the answer. To quote the main steps:

  1. From the Azure Portal, Select the CDN profile

  2. Click on Manage to open the configuration page

  3. From the HTTP Large menu, select Rules Engine

  4. Update the Name / Description i.e. HTTP to HTTPS redirect

  5. Change the Always dropdown menu to Request Scheme

  6. Click the Features+ button and select URL Redirect

  7. Within the pattern text field enter (.*)

  8. In the Destination text field enter https://%{host}/$1

  9. Click Add

2
  • Hi Maximillian, the Verizon configuration page's rule does not contain a pattern text field but includes a source field. Also, the code dropdown does not have 308 code. Can you please explain what value should I enter in the source field and how can I set redirect code to 308
    – Yash
    Commented Sep 11, 2021 at 6:20
  • @Yash This may be about as much as I am able to personally help, given my lack of knowledge of this specific tool. On another note, is there a particular reason you specifically need a 308 status code, or would a 301 status code be close enough? Finally, here is another article that seems like it may be helpful: camerondwyer.com/2021/02/09/… Commented Sep 11, 2021 at 6:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.