Add a MIME type for a Windows web hosting instance

更新时间:
复制 MD 格式

Multipurpose Internet Mail Extensions (MIME) is an internet standard that specifies how to open files with a specific extension. When a file is accessed, the browser uses its MIME type to open it with the correct application. This topic describes how to add a MIME type in the Web Hosting console for a Windows-based Web Hosting instance.

Procedure

All Windows-based Web Hosting instances (including Standard and Enhanced editions) support adding MIME types. This topic uses a Standard Dedicated Web Hosting instance as an example.

  1. Log on to the Cloud Web Hosting management page.
  2. Find the Cloud Web Hosting instance that you want to manage and click Manage in the Actions column.
  3. In the left-side navigation pane, choose advanced environment settings > MIME type settings.

  4. On the MIME Type Settings page, add a MIME type.

    Important
    • Web Hosting instances include common MIME types by default for file types such as HTML, JPG, and PNG. You do not need to configure them.

    • If a MIME type is not configured for a file type, such as MSU, MP3, MP4, or APK, you may receive an error message stating that the file cannot be opened or requires a plug-in.

    The following example shows how to add a MIME type for an APK file:

    1. In the file type text box, enter .apk.

    2. In the application text box, enter application/vnd.android.package-archive.

    3. Click Add.

  5. In the dialog box that appears, click Confirm.

    The MIME type for APK files is now configured.

Related topics

If you use a Standard Linux-based Web Hosting instance, you can manually add a MIME type in the pseudo-static rule file .htaccess to define how the server handles specific file extensions. For more information, see Add a MIME type for a Linux-based Web Hosting instance.