how to add/edit/remove MIME types in Plesk

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.

  1. Login into Plesk Control Panel.

  2. Go to Websites & Domains and find the website's domain name. Click on Virtual Directories.

    01-click-on-websites-domains



  3. Click on the MIME Types tab.

    02-click-on-the-mine-type

  4. Click on Add MIME Type .

    03-add-mime-type

  5. 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.

    04-edit-mime-type

  6. 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.

    05-custom-mime-type



To edit a MIME type for a virtual directory within a website.

  1. Go to Websites & Domains and find the website's domain name.

  2. Click Virtual Directories.

  3. Select the MIME Types tab.

  4. Select the required MIME type in the list.

    06-select-mime-from-plesk

  5. 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.

    07-edit-mime-type

  6. Click OK to save changes.



To remove a MIME type for a virtual directory within a website:

  1. Go to Websites & Domains and find the website's domain name.

  2. Click Virtual Directories.

  3. Select the MIME Types tab.

  4. Select the checkbox corresponding to the MIME type which you want to remove.

  5. Click Remove button.

    08-remove-mime-type

  6. Check Confirm removal and click OK .

    09-confirmation-of-mimetype-removal




  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to enable automatic backups in Plesk Control Panel?

Login to the Plesk panel with the username and password: The URL of the Plesk control panel will...

How to delete Domains and subdomain in the Plesk panel?

You can remove the Domains/sub-domains from the Plesk Panel.  Login to the Plesk Panel.   Go to...

How to take backup and restore the MSSQL/MySQL database in Plesk

This article will guide you how to restore and take backup of MSSQL/MySQL database in Plesk....

how to reset an email account password from the Plesk panel?

This article will guide you how to reset an email account password from the Plesk panel. Login...

What is website copying in Plesk?

Plesk Panel allows you to set up a website staging environment to check that everything runs...