Configure IIS for additional file extensions and mime types
From Notes_Wiki
Revision as of 04:21, 5 July 2022 by Saurabh (talk | contribs) (Created page with "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: # For this g...")
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:
- For this go to IIS Manager -> Server
- Double click on "Mime Types"
- Click on "Add" on right side and add:
- pem
- application/binary
- cer
- application/binary
- Or other appropriate file extensions with corresponding mime types
- 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