HTTPS redirect loop through CloudFlare services

HTTPS redirect loop through CloudFlare services

by Omer Magill -
Number of replies: 1

Dear All;

I just recently attempted to use CloudFlare's Flexible SSL encryption system for my subdomain (ex, moodle.domain.com) in which I host my moodle (v. 3.2) although since I've added a Page Rule to always use HTTPS, I cannot access my moodle. It keeps giving me the error "ERR_TOO_MANY_REDIRECTS" 

Upon reading CloudFlare's support forums regarding 'Redirect Loops', I've tried their solutions however it has not yet solved it for my moodle subdomain - although it has worked for the rest. 

I've also tried purging my cache and clearing browser cache but the error persists. Could this be an issue with a setting that I have overlooked? 


Average of ratings: Useful (1)
In reply to Omer Magill

Re: HTTPS redirect loop through CloudFlare services

by Omer Magill -

After arduous research and many failed attempts, I have finally found the solution to install custom SSL certificates to the server - and I've also apparently overlooked the settings;


$CFG->wwwroot   = 'https://moodle.domain.com';

$CFG->sslproxy = true;


- After changing them and installing a custom SSL certificate into my server, I've managed to fix it. Thank you.

Average of ratings: Useful (2)