$CFG->wwwroot = 'https://moodle.site.com';
$CFG->reverseproxy = true;
$CFG->sslproxy = 1;
Source: Moodle 3.7 & Apache & reverse proxy results ERR_TOO_MANY_REDIRECTS – Server Fault
Moodle 3.7 & Apache & reverse proxy results ERR_TOO_MANY_REDIRECTS – Server Fault was last modified: January 14th, 2020 by