Use "Use SSL for administration interface" cause "redirected you too many times."

Phong Nguyen asked on July 27, 2017 06:11

Hi guys,

I'm new on Kentico and I have a problem with "Use SSL for administration interface":

I want to force the admin of kentico 8 to use https, so I followed instructions in this site:

Configuring SSL

And then I added custom code like this site mention: Can solve Redirection loop issue

SSL accelerator support

But it was not working, I still get the error : "mysite.com redirected you too many times": Image Text

Can anyone please help me with this issue? Any help would be appreciated.

Thanks.

Recent Answers


Brenden Kehren answered on July 27, 2017 07:16

What are your other site settings? For instance, do you have your Default alias path set to something like /home?

Or do you have the URL setting for Default page as domain root?

Do you have any domain aliases on the site that are redirecting to another page on the site?

If any of these are configured incorrectly they could cause that issue. I've not had to implement that code you referenced in a what we will call regular implementation of Kentico. Meaning of you're not behind a load balancer or some proxy, that code isn't needed. If you have a single server with an ssl cert in it, there should be no need for that ssl accelerator code.

0 votesVote for this answer Mark as a Correct answer

Phong Nguyen answered on July 27, 2017 11:11

Hi Brenden Kehren,

Thank you very much for your help.

I just checked for some setting you mentioned:

  • Default alias path: Null
  • Default alias page: Use domain root

In IIS I use these domains for the web http://mysite.com:80 and https://mysite.com:443 with an ssl cert.

Do you have any idea about this issue?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 27, 2017 14:42

Set the default alias path to your home page in the content tree.

0 votesVote for this answer Mark as a Correct answer

Phong Nguyen answered on July 31, 2017 05:38

Hi Brenden Kehren,

Sorry for my late reply, I was overloaded last week.

I set the default alias path to my home page in the content tree but it's not woking.

One more infomation I forgot to tell, my site in local work perfectly, every time I go Admin site in local, it redirect to HTTPS, but not in my server site.

Do you have any idea about this?

0 votesVote for this answer Mark as a Correct answer

Jim Hey answered on August 4, 2017 18:26 (last edited on August 7, 2017 14:50)

It sounds as though the SSL forwarding from the server is perhaps not working correctly and the X-Forwarded-Proto request header isn't getting added?

0 votesVote for this answer Mark as a Correct answer

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