Infinite redirect loop on homepage after migrating to azure front door

Taishi Kasai 96 Reputation points
2021-01-20T16:58:42.103+00:00

Hi Azure Support, I have an azure VM running wordpress and have connected it to the azure front door product. When I do this, the homepage only fails to load with an error, "too many redirects" I am puzzled on why this is happening. The homepage loads properly when unhooked from the Front door, I have disabled all plugins and have made sure my base url and site url's are the same so that it is not creating a redirect loop there. I have checked apache to make sure that there are not redirects set up creating a loop there as well. Any ideas I've already been looking at this for a couple of days and am stumped on why this is happening.
I am also using a custom domain and my own certificate for ssl

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
598 questions
{count} votes

Accepted answer
  1. Taishi Kasai 96 Reputation points
    2021-01-20T17:38:17.243+00:00

    I have resolved the issue. The fix for this was two steps all contained within Front Door. This is assuming that plugins and apache are not causing issues with custom configured redirects.

    1.) Go to azure front door designer and go to the backend pools settings

    2.) Choose the backend rule that routes the traffic to the site/vm that is experiencing the loop.

    3.) Input custom domain name that is experiencing the loop in the box "Back end host header", then click update.

    4.) Go to the "Routing Rules" and choose the routing rule for the site experiencing the issue.

    5.) click the drop down "frontends/domains" and uncheck the default url given to the site by front door, typically ends with ".azurefd.net"

    6.) Click update, then save button in the designer.

    0 comments No comments

0 additional answers

Sort by: Most helpful