FICHA · AUR

nginx-mod-mime-magic

Set Content-Type mime-type automatically from the magic bytes of some file! (Similar to file(1))

  • server-module
  • PLUGIN
  • Server
  • Web
  • Dependency only
official+codex · reviewed · Jun 2, 2026 description in en

Description

Content-Type headers can be detected from file magic bytes instead of only relying on names or extensions. It is useful for nginx deployments serving files where MIME accuracy matters.

Automatic MIME detection can still be wrong or incomplete. Test served file types and avoid relying on it as the only protection against unsafe uploads.

Permissions

Permissions not analysed for this source yet.