HTTPS conversion in config.php occurs "too many redirect" error message

HTTPS conversion in config.php occurs "too many redirect" error message

by Kushan Rathnasekara -
Number of replies: 2

Dear Sir / Madam,

I installed a SSL certificate and convert to my moodle site to HTTPS://.

Edit the config.php and changed HTTP// to HTTPS:// as follows.

$CFG->wwwroot   = 'https://www.elead.lk/lms';

Now site is down and "too many redirect" error message is coming. 

Really Really Appreciate your co-operation to sort out the matter.

Thank you so much !

Kushan




Average of ratings: -
In reply to Kushan Rathnasekara

Re: HTTPS conversion in config.php occurs "too many redirect" error message

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

How did you install the certificate? If it's on an external appliance you may need to add $CFG->sslproxy = true; to config.php. From the config-dist.php example file:

// Enable when using external SSL appliance for performance reasons.
// Please note that site may be accessible via http: or https:, but not both!
//      $CFG->sslproxy = true;
In reply to Leon Stringer

Re: HTTPS conversion in config.php occurs "too many redirect" error message

by Kushan Rathnasekara -

Dear Sir,

Thank you sooooo much !!!!!!!!

It worked.... More than a week I was stucked without resolving this issue..

You made my day...

Really appreciate your guidance...

Kushan