moodle and ssl proxy server

How to configure moodle with a frontend ssl ?

VM1: (nginx + letsencrypt)  ——>VM2: apache2 with moodle

 

Setting up your moodle

On a basic moodle site, it will be simple to set up https. Simply edit config.php and change http:// to https:// in $CFG->wwwroot.

However if you are using a proxy or load balancer, depending on your setup you may need to set $CFG->sslproxy to 1, and not use SSL on the moodle server. Then the load balancer or proxy server can communicate directly to your moodle site, but serve to the clients over SSL.

 

$CFG->sslproxy  = 1;

systemctl restart apache2

Per esempio: https://moodle.renatomorano.net/

Comments are closed.