If you are converting Moodle site from HTTP to HTTPS or setting up from the scratch, it will be a bit tricky as I also experienced.
By the way, I'm not going to talk about how to install the SSL certificate here. This is only about the Moodle configurations you have to do after that.
There are two ways you can do this.
1. Enable HTTPS using a proxy or an ELB
$CFG->wwwroot = 'https://my.moodle.site.edu';
//Add the following line
$CFG->sslproxy = true;
2. Enable HTTPS in Apache server
This is if HTTPS is enabled in the Apache server on which Moodle is hosted without a proxy. This way, the SSL certificate will be required to install in the Apache server itself. Or in other words, SSL termination will be handled by the Apache server itself.
If you do this, you have to update the config.php file in the moodle directory with the HTTPS base URL.
$CFG->wwwroot = 'https://my.moodle.site.edu';
Comments
Post a Comment