This article will guide how to add/edit/remove MIME types in Plesk
WHAT IS MIME TYPES?
MIME stands for Multipurpose Internet Mail Extensions . It's a way of identifying files on the Internet according to their nature and format. MIME types are a way to label types of data so programs are able to process the data correctly. For example, MIME types can help a browser determine what type of content is about to be processed so the browser can use the proper protocols, media player, codec, or plugins to display the data correctly.
For example, the MIME types file maps the extensions .html and .htm to the type text/html: type=text/html exts=htm,html.
When a web server delivers a web page to a client web browser, it also sends the MIME type of the data it is sending. If there is an attached or embedded file in a specific format, IIS also tells the client application the MIME type of the embedded or attached file. IIS can only operate files of registered MIME types. These types could be defined both on the global IIS level and on the website or virtual directory level.
To add a MIME type for a virtual directory within a website in Plesk.
- Login into Plesk Control Panel.
- Go to Websites & Domains and find the website's domain name. Click on Virtual Directories.
- Click on the MIME Types tab.
- Click on Add MIME Type .
- Specify the following:
- Type the file name extension in the Extension field. Filename extension should begin with a dot (.), or a wildcard (*) to serve all files regardless of file name extension.
- Specify the file content type in the Content field. (i.e. text/html) and click on OK to finish. - You can either select the appropriate value from the list or define a new content type. To do this, select Custom and enter the content type in the input box provided(i.e. video/mp4). Click OK to finish.
To edit a MIME type for a virtual directory within a website.
- Go to Websites & Domains and find the website's domain name.
- Click Virtual Directories.
- Select the MIME Types tab.
- Select the required MIME type in the list.
- Edit the file name extension in the Extension field. Filename extension should begin with a dot (.), or a wildcard (*) to serve all files regardless of file name extension. Specify the file content type in the Content field.
You can either select the appropriate value from the list or define a new content type. To do this, select Custom and enter the content type in the input box provided. - Click OK to save changes.
To remove a MIME type for a virtual directory within a website:
- Go to Websites & Domains and find the website's domain name.
- Click Virtual Directories.
- Select the MIME Types tab.
- Select the checkbox corresponding to the MIME type which you want to remove.
- Click Remove button.
- Check Confirm removal and click OK .