I have set up a Moodle server using its IP address. Moodle is in the default folder /var/www/html/moodle. Works fine.
I've set the A record of the subdomain: learn.subdomain.com to point to the IP address. I've changed config.php so that $CFG->wwwroot = 'http://learn.subdomain.com/moodle';... doesn't work.
(edit - could it be the DNS hasn't propagated properly yet?)
All I get is the screen below with no folder content.
Where have I gone wrong please?