如何在 Moodle 上禁用 https?

How to disable https on moodle?

我最近将我的 moodle 网站从 2.9 升级到了 3.4。 Https 仅在登录页面上启用。升级后全站启用https。现在一些远程 scorm 包不起作用。 如何像以前一样仅在登录页面上使用 https? 提前致谢!

来自模型,组织:Possible issues that may affect you in Moodle 3.4

Setting "Use HTTPS for logins" ('loginhttps') was completely removed since it provided false sense of security. If it was enabled before upgrade the whole site will be served via HTTPS protocol

在 config.php 中,添加以下行应该可以防止 https 被强制:

$CFG->overridetossl = false;

(我没有测试过,但看起来应该可以)。