|Image Source: http://www.elect.mrt.ac.lk/computer_in_bus.jpg|
Once again, Moodle is starting to come to the front burner in my experiences with K-12 and adult learners. For awhile there, it looked like Moodle might not survive but with a new RedHatLinux server in process to get setup, this course management system has gotten a new lease on life. To be honest, we’re using the heck out of our Mac server and with thousands of users hitting it at once, it was starting to buckle under the pressure.
If I have a server on a local area network–but the LAN is not connected to the internet–how can I assign it a domain name rather than just the server IP address? Imagine a server on a LAN travelling around in a bus with no outside Internet access but a network accessible. Computer users inside the bus access a moodle running on a server in the bus.
I had some excellent responses from Rusty Meyners (Eustace ISD in Texas) and Gavin Henrick via Google+. Gavin wrote:
Firstly the name of the server in the workgroup should work for example my local server is on 192.168.1.3 but responds tohttp://ubuntuserver/ or http://192.168.1.3/
you can of course use the local host resolution to point at the domain (which is a nice easy quick fix if its a few desktops only)
or you could run a local domain name server which all machines include for resolution. As it is a limited set, sounds like a forced domain via hosts file is a good choice (but remember to reconfigure the apache server / moodle to recognise the domain. rather than just IP.Depending on your configuration, apache may work fine (if not running multiple virtual domains) so try it first
But for the Moodle configuration config.php probably looks like
$CFG->wwwroot = ‘http://192.168.1.3/moodle‘;
if you change (like i can) to http://ubuntuserver/ some other domain, this line must be edited, as Moodle 2 will complain if u access from any other domain and bounce you to correct one.
It would show a message like
“Incorrect access detected, this server may be accessed only through “http://192.168.1.3/moodle” address, sorry.Please notify server administrator.”(and then redirects)
Enter your email address:
Delivered by FeedBurner