Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to add MIME type support for IIS

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how to add MIME type support to IIS". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Problem: recently, when I deployed the web project on IIS, I found that the browser could not read mp4 videos. Causes the website to fail to play videos.

If mp4 is not supported by iis7 or above, the error message is as follows

The page you requested could not be provided due to an extension configuration problem. If the page is a script, add a handler. If you should download the file, add the MIME mapping.

Reason: because the server IIS does not support some file types such as mp4 by default, just add the MIME type to the IIS.

Iis6.0 version

Open the iis manager to find the site you want to set, right-click the properties, find the http header, you can see the mime type button, we click in

Create a new mime type you want

For example, if you want to add the mime of mp4, we will type in the extension .mp4 type video/mp4, and then click confirm person to finish the test.

Iis7.5 Settin

Find the site you want to set up, click the function view, and find the MIME type option

After entering the mime type function, click the add button in the upper right corner to add the extension. mp4 type video/mp4, and then click confirm person to finish the test.

When it is accessed and prompted to download, it means that the mp4 type is already supported.

Subsequent updates of common mime types

The Mime type extension means application/msexcel*.xls * .xlaMicrosoft Excel Dateienapplication/mshelp*.hlp * .chmMicrosoft Windows Hilfe Dateienapplication/mspowerpoint*.ppt * .ppz * .pps * .potMicrosoft Powerpoint Dateienapplication/msword*.doc * .dotMicrosoft Word Dateienapplication/octet-stream*.exeexevideo/mp4*.mp4MP4application/pdf*.pdfAdobe PDF-Dateienapplication/postscript*.ai * .eps * .psAdobe Postscript-Dateienapplication/rtf*.rtfMicrosoft RTF-Dateienapplication/x-httpd-php*.php * .phtmlPHP-Dateienapplication/x-javascript*.jsserverseitige JavaScript -Dateienapplication/x-shockwave-flash*.swf * .cabFlash Shockwave-Dateienapplication/zip*.zipZIP-Archivdateienaudio/basic*.au * .sndSound-Dateienaudio/mpeg*.mp3MPEG-Dateienaudio/x-midi*.mid * .midiMIDI-Dateienaudio/x-mpeg*.mp2MPEG-Dateienaudio/x-wav*.wavWav-Dateienimage/gif*.gifGIF-Dateienimage/jpeg*.jpeg * .jpg * .jpeJPEG-Dateienimage/x-windowdump*.xwdX-Windows Dumptext/css*.cssCSS Stylesheet-Dateientext/html*.htm * .html*. shtml -Dateientext/javascript*.jsJavaScript-Dateientext/plain*.txtreine Textdateienvideo/mpeg*.mpeg * .mpg * .mpeMPEG-Dateienvideo/vnd.rn-realvideo*.rmvbrealplay-Dateienvideo/quicktime*.qt * .movQuicktime-Dateienvideo/vnd.vivo*viv * .vivoVivo-Dateien "how to add MIME type support for IIS" ends here Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report