When mod_mime_magic attempts to identify a Microsoft .ANI cursor file, it causes a 500 Internal Server Error. The access_log shows 500 for that request but nothing appears in the error_logs. The command line 'file' utility successfully identifies the file as: banana.ani: RIFF (little-endian) data, animated cursor Disabling mod_mime_magic causes the file to be served just fine. A file renamed to an .ANI extension will also be served just fine so long as it isn't really an ANI format cursor. This has been present since at least Apache 1.3.17 You can download an ANI-format cursor from the URL above.
Created attachment 3132 [details] log an error when mod_mime_magic returns the dreaded 500 error
I've attached a patch which logs a message when 500 errors are returned from mod_mime_magic. This change was committed to Apache 2.0 quite a while ago. If I recall correctly, formatting errors in the magic file (e.g., incorrect whitespace, missing fields) can lead to some such errors.
we shouldn't return 500 with no error log explaining why!
Fixed in 1.3.30