ERR_TOO_MANY_REDIRECTS in the case of Azure CDN(http-to-https redirect rule)

Lukas Friedrich 106 Reputation points
2020-12-09T00:58:49.81+00:00

Getting to many redirects after creating rule:
46512-image.png

I followed this post:
https://learn.microsoft.com/en-gb/azure/cdn/cdn-standard-rules-engine
found from this post:
https://medium.com/azure-architects/configuring-azure-cdn-http-https-redirection-2a9e4aab0a77

The UI seems to have changed... No longer have access to HTTP Large > Rules Engine through the CDN profile.
Now, the rules engine is a tab on the CDN endpoint itself, rather than the profile. I think the subscription tier causes the variance.

I created a storage acc, blob storage, enabled a static webpage, created a cdn endpoint (https://makesethmad.azureedge.net), custom domain (www.issethmad.com) pointed to the cdn endpoint successfully and HTTPS enabled through azure's provided SSL.

The goal is to make make issethmad.com and https://issethmad.com/ redirect to my correct site.

CDN endpoint with SSL enabled through Azure CDN HTTPS feature
Google Domain has cname record of www.issethmad.com that points to "https://makesethmad.azureedge.net"
DNS setting: subdomain forward from "issethmad.com" to https://makesethmad.azureedge.net

Note: https://makesethmad.azureedge.net was working with all the DNS settings. Issue flared when I added the rule, not to say my DNS settings are perfect :D

Thank you for taking time to read this!

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
592 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,415 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
762 questions
0 comments No comments
{count} vote

Accepted answer
  1. Lukas Friedrich 106 Reputation points
    2020-12-09T05:58:00.263+00:00

    Changed condition to Request protocol match condition

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Balaji 51 Reputation points
    2023-07-21T16:21:17.8+00:00

    can you please explain this error in details?

    curl https://mysite.com

    <html>

    <head><title>308 Permanent Redirect</title></head>

    <body>

    <center><h1>308 Permanent Redirect</h1></center>

    <hr><center>nginx</center>

    </body>

    </html>

    0 comments No comments