Introduction
You may run into a scenario that requires defining a custom Mime Type for various content for your sites to operate normally (for example, running WebAssembly code that requires a Content-Type to be defined).
Below is how you define this information in cPanel.
Procedure
From https://docs.cpanel.net/cpanel/advanced/mime-types/
To add a MIME type, perform the following steps:
- Enter the name of the file type’s handler in the MIME Type text box.
- For example,
application/cgi
represents the handler for .cgi file extension.
- For example,
- Enter the file extension in the Extension(s) text box.
- A file extension represents the letters after the dot (
.
) in a file name. For example,filename.fileextension
.
- A file extension represents the letters after the dot (
- Click Add.