I installed moodle and I can access Moodle login page from the internet via http://MyPublicIP/moodle.
I recently bought a domain and now I can accessed the login page via http://MyDomain.com/moodle.
Now, I would like to access the login page without entering moodle - I would like to use http://MyDomain.com. Based on Moodle documentation, I need to edit config.php as follow:
cd /var/www/html/moodle sudo vim config.php
Under $CFG->wwwroot change to http://ip.address.of.server instead of http://ip.address.of.server/moodle