I have a Wordpress site hosted in an Azure Web App. It works fine when accessed directly by the web app. But when I put it behind the Azure Application Gateway, I receive "Too_Many_Redirects" error.
I have another website behind the Application Gateway, that is not a Wordpress, and this does not occur.
Has anyone ever experienced this? It's there any specific setting or workaround to make this work?
Edit 1----
Application Gateway Configs:
The Web App endpoint is in HTTPS.
Edit 2----
Today I made a lot of tests and find a way to make this work, but doesn't solve the problem, instead, creates another one. In Wordpress at 'SiteURL' and 'Home' settings instead of use the desired address, the custom one, I used the default address provided by Azure Web App . Doing like that, the TOO_MANY_REDIRECTS error was gone, but the links of my website changed to *.azurewebsites.net, which is a big problem.
I tried the 'Home' address with HTTPS and HTTP. No success.
I just discovered that even with no SSL, the problem occurs. Only works with the 'azurewebsites' address, that break my links.