Outils pour utilisateurs

Outils du site


linux:moodle

Moodle

Reverse Proxy

Sur le serveur Proxy

<VirtualHost *:443>
    ServerName server.moodle.be
 
 
    ErrorLog ${APACHE_LOG_DIR}/campus-error.log
    CustomLog ${APACHE_LOG_DIR}/campus-access.log combined
 
    ProxyRequests Off
    ProxyPreserveHost Off
    RequestHeader set X-Forwarded-Host rproxy1.makeitsimple.be
    RequestHeader set X-Forwarded-Server rproxy1.makeitsimple.be
 
    ProxyPass / http://10.20.53.18/ nocanon
    ProxyPassReverse / http://10.20.53.18/
 
 
SSLCertificateFile /etc/letsencrypt/live/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>

Sur le serveur Moodle

$CFG->wwwroot   = 'https://server.moodle.be';
$CFG->dataroot  = '/var/www/moodledata';
$CFG->dirroot   = '/var/www/moodle';
$CFG->admin     = 'admin';
$CFG->reverseproxy = true;
$CFG->sslproxy  = true;
linux/moodle.txt · Dernière modification : de root