Mime type question

Mime type question

by Marilyn Fleming -
Number of replies: 1

I think I need to tweak something, either on the server or in Moodle, but I'm not sure where to start.

I have two servers, both Linux/Apache. On server A, Moodle works like a charm. On server B, it installs and appears to work, but virtually all non-html resourses display as text. For example, a PDF doesn't invoke Acrobat. It brings up an ASCII display of the Postscript code. The server itself is fine with PDFs, because I use them elsewhere on the site with no problem.

The two Moodles are absolutely identical (v1.2). I copied exactly the same files to both servers.

Any ideas? (Both are shared servers, so I have minimal control over Apache settings.)

Average of ratings: -
In reply to Marilyn Fleming

Re: Mime type question

by Zbigniew Fiedorowicz -

This is controlled by two settings in the Apache web server configuration file which look something like this:

    TypesConfig /etc/mime.types
    MIMEMagicFile /etc/httpd/conf/magic

I would guess that on server B, these settings or the files they point to, are messed up. You might try to see if you can correct for this with an .htaccess file in your Moodle directory.