apache.conf.in: add mime_magic_module directive
commit685cfb9d06ed82ee3735af1e758e8ed949ec4f29
authorKyle J. McKay <mackyle@gmail.com>
Wed, 18 Feb 2015 02:59:27 +0000 (17 18:59 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 18 Feb 2015 02:59:27 +0000 (17 18:59 -0800)
tree5a49ccff2c47ba4ee5fa3acd6d358b1bf1bb99f1
parente26e12697f6136af89e5a2a22a1965993004b482
apache.conf.in: add mime_magic_module directive

If mod_mime_magic is enabled, add a directive to turn it off.

When mod_mime_magic is enabled, it inspects the contents being
returned to provide a default Content-Type.  Unfortunately,
git-http-backend does not always provide a Content-Type and
when it does not mod_mime_magic adds the type of the script
rather than using text/plain.  This typically only happens
for errors but is clearly wrong.

Disable mod_mime_magic if enabled by setting its magic file
to /dev/null.  This also speeds up access to non-smart loose
objects and packs by avoiding the need to inspect them.
apache.conf.in