Media files from http requests to https

Theodoulos Iacovou asked on October 23, 2019 18:15

Hello guys,

On media i am trying to upload images and the SLL block the request because the request is http and not https.

How do we change those requests to HTTPS?

Thank you.

Correct Answer

Juraj Ondrus answered on October 24, 2019 08:26

Most common scenario for this is that the SSL is terminated before the actual web server where Kentico is running. So Kentico receives basivally HTTP requests and Kentico does not know it should be using HTTPS. For this purpose you need to use SSL Accelerator.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Theodoulos Iacovou answered on October 24, 2019 08:37 (last edited on October 24, 2019 08:38)

I tried the SSL Accelerator and the issue continues

If i will follow these steps will be okay?

FILE: /CMSAdminControls/MultiFileUploader/MultiFileUploader.ascx.cs LINE: 387 OLD: return URLHelper.GetAbsoluteUrl(url); NEW: return URLHelper.GetAbsoluteUrl(url).Replace("http://", "https://");

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on October 24, 2019 09:31

That change is not supported and it is really a hack and I cannot tell what other impact it could have. You should check what headers are sent from the server which is terminating the SSL, debug the SSL accelerator code to see if it is hit correctly and what are the values in the headers and so on.

0 votesVote for this answer Mark as a Correct answer

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