One of our network guys stopped by and said your DNS name is all set. Now I can proceed with sharing the site with others for some testing and feedback etc. I typed in the name in my favorite browser and boom, not so fast. The site would not come up. It was still referencing 127.0.0.1 as the host name, even though I was providing a DNS name via the web browser.
After looking in the Apache configuration file, and explicitly changing the line that said
ServerName localhost:80
to
ServerName DNS:80
and saving the file and restarting the Apache service, I was still getting the same error from the browser.
127.0.0.1/moodle not found....
I started looking on our other server that is VHosting multiple sites and saw the alias used for one of the sites, I was about to add an alias statement to the Apache config. file when I stepped back once more and though of Winni the Pooh "think, think, think"....
Then the aha.
Modify the moodle config.php file that contains the line for the web root
$CFG->wwwroot = 'http://localhost/moodle';
Change localhost to the DNS name, save the file and.........bingo. In business.
Moral of the story?
Don't forget to update the root moodle config file when changing the DNS.
No comments:
Post a Comment