Moodle with Azure Application Proxy

Moodle with Azure Application Proxy

by David Garcia -
Number of replies: 1

Hello everyone

       I have installed Moodle 3.9 in Ubuntu server 20.04 in virtual localhost computer, now I would like to publish this Moodle throught Azure Application proxy but I have some problems when I configure local address and Azure publish address, can anyone help me?


Attachment Azure.JPG
Attachment Config_PHP.jpg
Average of ratings: -
In reply to David Garcia

Re: Moodle with Azure Application Proxy

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Surely $CFG->wwwroot should be 'https://developmenttest-▮▮▮▮▮▮.msappproxy.net'? A Moodle site can only have a single URL: the URL used in the browser to access the site and presumably the .local URL isn't that URL.

Depending on how the Azure application proxy works (I'm not familiar with it) you may need to add $CFG->reverseproxy = true to config.php. If you're getting a message like "Too many redirects" try this. If you get the error "Reverse proxy enabled, server can not be accessed directly" then remove this setting.