Configure IIS for additional file extensions and mime types

From Notes_Wiki

Home > Windows > Microsoft IIS Web server > Configure IIS for additional file extensions and mime types

If we try to put new types of files such as .pem, .cer which are not recognized by IIS by default in webroot (C:\Inetput\wwwroot) or its subfolders then they do not get downloaded when requested via the web URL. To enable serving such files by IIS Web server we need to associate their extension with appropriate mime type using:

  1. For this go to IIS Manager -> Server
  2. Double click on "Mime Types"
  3. Click on "Add" on right side and add:
    pem
    application/binary
    cer
    application/binary
    Or other appropriate file extensions with corresponding mime types
  4. After this if there is any pem or cer file in wwwroot, it can be downloaded via appropriate URL.

Refer:



Home > Windows > Microsoft IIS Web server > Configure IIS for additional file extensions and mime types