We are running moodle 2.1.1 on Ubuntu 10.04.2. Some file resources are getting the following error.
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.
I don't know if you have resolved your issue or not, but I had the same issue. When I installed moodle it used the IP address in the config.php file. I simply corrected it by changing it to my www.mydomain.com address.
However, doing this did cause me another issue which can be found below
Hope this helps.
I have the same error... I see why, but don't know how to fix it.
In the config file we have $CFG->wwwroot = 'http://oursite.co';
Accessing the site at this URL works fine.