The /etc/httpd/conf/magic file is too short and too simple. This seems to be
better to use (longer and better) file /usr/share/file/magic.mime (from "file"
Also PHP is using Apache's magic file and this causes problems when using
MediaWiki and other appliactions, see:
PHP bug filled as bug #240845.
Please consider to use external MIME definition (by requiring "file" package and
by creating symlink from /etc/httpd/conf/magic to /usr/share/file/magic.mime) or
simply copy actual MIME file from package file to the Apache package (does not
sound good as this preserves MIME definition duplication).
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. This request will
be reviewed for a future Red Hat Enterprise Linux release.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
Having reviewed the mod_mime_magic code I'm no longer confident about making this change by default. The httpd.conf already offers the alternative MIMEMagicFile as a commented-out example. I'll change this in Fedora Raw Hide to get some wider testing of the use of the magic.mime from file(1).
On testing of this change, when configured to use /usr/share/file/magic.mime, mod_mime_magic will not even detect an HTML file correctly.
mod_mime_magic's magic-file parser is not grokking the newer-format mime files correctly. I've modified the shipped conf/magic file to support image/png - even this had to use a simplified version of the PNG detection magic.
A better long-term goal might be to use libmagic directly from mod_mime_magic, though I haven't looked into that.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.