Moodle 5.1 moves web root to public/; nginx config must follow
Moodle 5.1 relocated the web-accessible files into a public/ subdirectory, which is now the dirroot. Servers still pointing their document root at the install root will expose source files such as config.php, composer files, vendor/, and .git. The article recommends checking what PHP reports for root, dirroot, wwwroot, and dataroot against the web server configuration. It also suggests probing the public hostname to confirm sensitive paths return 404 while index.php and pluginfile.php remain reachable. The dataroot should stay outside both directories and must not be moved into public/.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in