I would like to be able to disable the Apache module mime_magic
in a particular directory (and its children). I've searched around, and there seem to be special one-off flags you can set to disable some modules (PHP, deflate, etc), but nothing general (or specific to mime_magic
.
Is there a way to disable mime_magic
in one directory? There's a known issue with it causing issues serving BAM files with JBrowse, and the recommended workaround is to disable mime_magic
.
The module (like all modules) is enabled server-wide. The only available configuration directive is MimeMagicFile, which can be set at the server or virtual host level. So if you wanted to disable it for a specific virtual host, I suppose you could set
MimeMagicFile /dev/null
in that vhost. But there doesn't seem to be any way of disabling it for a specific directory.