Invalid redirect when running Kentico CMS behind a proxy server

Andy Bochmann asked on December 12, 2019 06:09

Hello,

I'm running Kentico CMS and the MVC application as separate Azure Web Apps behind an Azure Application Gateway. I'm currently using Kentico 12.0.45 and configured Kentico to run behind a proxy server using these instructions: https://docs.kentico.com/k12sp/deploying-websites/running-kentico-behind-a-proxy-server

It does work and I can reach the application and the CMS, however, there seems to be at least one redirect that isn't working correctly.

When I try to access https://admin.xxxx.com it redirects to https://xxxx.azurewebsites.net/admin/. The correct link would be https://admin.xxxx.com/admin/.

If I enter https://admin.xxxx.com/admin/ directly, everything works fine. This is the only redirect, that doesn't seem to take the CMSUrlHost setting into account.

Does anyone else experience this problem and is there a solution?

Thanks, Andy

   Please, sign in to be able to submit a new answer.