Hello all!
My organization has enjoyed MoodleBox for a few years now, and recently made a considerable upgrade to the version of Moodle we use. This means using a newer version of MoodleBox as well. Previously, we have been able to follow the steps in the following link in order to change the default domain name "moodlebox.home" to something else.
Change the domain name of the MoodleBox
It seems that there was a change to networking and therefore this article starting in MoodleBox 4.6.0 (?). When I perform the steps described in the article, it has not produced the desired effect. The domain name does not resolve. I tested this across fresh installations of 3 different MoodleBox versions (4.6.0, 4.7.0, and 4.8.0), across three 32gb SD cards, in a Raspberry Pi 4B. I used the provided example name learn.example.com. Has anyone had success in performing the steps in this article in the versions I listed? The log files that I am aware of have not yielded any useful information. Here's some additional information:
- The installation works as expected at moodlebox.home immediately after flashing the SD cards.
- If I change the configuration to learn.example.com (as described in the linked article) I am unable to reach Moodle. However, if I revert the steps in the article to the configuration for moodlebox.home, it is accessible once again at that name.
- I am certain that I am using http and not https in all situations.
- If I am logged into the RPi via SSH after configuring it for learn.example.com, I can use the command
curl learn.example.com to receive the Moodle homepage. On my own computer, the same command fails. Additionally, the command prompt changes from moodlebox@moodlebox:~ $ to moodlebox@learn:~ $.
- I have tried to access learn.example.com through both my laptop and my phone while connected to the MoodleBox network with no success.
- Typing the IP address 10.0.0.1 into my address bar while connected does redirect me to learn.example.com, which then fails as usual.
- I have tried the following configuration with the
access line in 00-dhcp.conf both commented and un-commented.
- The following snippets are the relevant sections from each of the files described in the linked article:
/etc/hosts
...
10.0.0.1 learn.example.com
/etc/hostname
learn.example.com
/etc/nginx/sites-available/default
...
server_name learn.example.com;
...
/etc/NetworkManager/dnsmasq-shared.d/00-dhcp.conf
...
domain=learn.example.com
local=/learn.example.com/
#address=/home/10.0.0.1
...
/etc/nodogsplash/nodogsplash.conf
...
RedirectURL http://learn.example.com
...
/var/www/moodle/config.php
...
$CFG->wwwroot = 'http://learn.example.com';
...
I would be very grateful for any assistance. Thank you.