Showing private IP under azure loadbalancer

Vote:
 

I got issue while I go to admin /Episerver it redirects to private IP under an Azure load balancer with two cms instance hosted on azure VM machine.

Url: http://PRIVATE-IP/util/login.aspx?ReturnUrl=%2FEPiServer

But it works if directly go to https://DOMAIN-NAME/util/login.aspx?ReturnUrl=%2FEPiServer

Seems like HTTPs redirect issue under a load balancer.

Why /Episerver redirect to insecure HTTP ?

How to fix this issue. Your help will be appreciated.

#207488
Sep 22, 2019 12:24
Vote:
 

do you have any custom redirect rules?

what your site domain host mappings (configured in cms admin section)?

#207496
Sep 23, 2019 2:00
Vote:
 

Hi Valdis,

No, there is no custom redirect rule on web config.

There is one custom host binding on CMS admin's manage website section.

https://www.Domain-Name.com

Host Name                          Culture                       Type                      Scheme 

www.domain-name.com Primary HTTPS
* HTTPS
#207497
Edited, Sep 23, 2019 3:36
Vote:
 

Hi, what authentication are you using for the site?

If you are using forms authentication, then check the value in web.config: authentication -> forms, what is the loginUrl value?

If you are using the ASP.NET identity (Episerver implementation) or OIDC or something that uses Owin, then check your "LoginPath" value in your OwinStartup class, where you have the code for CookieAuthentication.

#207617
Sep 26, 2019 19:36
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.