Understand Apache Handlers and MIME Types
Separate how a file is processed from how its content type is described.
Where Tools → Advanced → Apache Handlers / MIME Types
Before you start
- Get the exact configuration from the application maintainer or hosting support.
- Record existing custom entries. Incorrect mappings can break downloads or expose code.
Steps
-
1
Open MIME Types when you need to associate extensions with a content type, such as a document format. Enter the required MIME Type and Extension(s) in their separate fields.
-
2
Open Apache Handlers only when the server must process particular extensions through a specific handler. This is not the ordinary way to change a website’s PHP version.
-
3
For removal, identify the user-defined entry and use its matching delete action. System-defined entries are provider configuration; contact support if one appears incorrect.
-
4
Use Add only after checking the exact mapping. Review it under user-defined entries and test the actual file response.
MIME Types describes the content format associated with extensions. -
5
Enter the approved Handler and Extension(s), then review before Add. Do not assign executable handlers to uploaded content without a security review.
Apache Handlers controls processing and requires particular care.
Check it worked
- The intended file opens/downloads correctly, with the expected content type or processing.
- Source code is not exposed, and unrelated extensions still behave normally.