We are running moodle 2.1.1 on Ubuntu 10.04.2. Some file resources are getting the following error.
"Incorrect access detected, this server may be accessed only through "http://moodle.mccallie.org" address, sorry."
If one right mouse clicks on the link and opens the resource in a new tab, a page displays the link and clicking the link opens the file.
If one Updates the file resource and saves the resource, the file opens as expected.
Earlier this week, we renamed our server from newmoodle.mccallie.org to moodle.mccallie.org. I think this caused this issue.
The hostname has been changed and $CFG->wwwroot is set to http://moodle.mccallie.org. Is there something else that I can look at that might resolve this issue?
Thanks,
Robert