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

Let the IIS server support flv,f4v,mp4 online playback (2003 Percience 2008)

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Uploading a flv or MP4 file to the server, but entering the correct address to access through the http protocol always has a 404 error that "the page cannot be found"? This indicates that the mp4 format file is not recognized by the server, in fact, this is the reason why the corresponding MIME type is not set in IIS. So how do you set the MIME type?

To open a mp4 file, you need to right-click the website or directory you want to change in the Internet Information (IIS) Manager, and you can open a window like the following (I right-click a folder instead of a site, so if you right-click a site, you may open more tabs than my, anyway, you can open a window by clicking the HTTP header):

The specific steps for the server to add MIME type mapping settings in mp4 format are as follows:

"start" > "Control Panel" > Administrative tools > "Internet Information Services (IIS Manager)", find your website, right-click > "Properties" > "HTTP header" > "MIME Type" > "New", enter ".mp4" in the "extension" box, enter "application/octet-stream" in the "MIME Type" box, and then confirm. " The "MIME type" is just a description, and you don't have to enter "flv-application/octet-stream".

The specific steps for the server to add MIME type mapping settings in flv format are as follows:

"start" > "Control Panel" > "Administrative tools" > "Internet Information Services (IIS Manager)", find your website, right-click > "Properties" > "HTTP header" > "MIME Type" > "New", enter ".flv" in the "extension" box, enter "flv-application/octet-stream" in the "MIME Type" box, and then confirm. " The "MIME type" is just a description, and you don't have to enter "flv-application/octet-stream".

The MIME type is the type of way in which a file with a certain extension is opened by an application, and when the extension file is accessed, the browser automatically opens it using the specified application. It is often used to specify some client-defined file names, as well as how to open media files.

The following lists the MIME types of commonly used file correspondence:

Mime-Types (mime type) Dateiendung (extension) Bedeutungapplication/msexcel*.xls * .xlaMicrosoft Excel Dateienapplication/mshelp*.hlp * .chmMicrosoft Windows Hilfe Dateienapplication/mspowerpoint*.ppt * .ppz * .pps * .potMicrosoft Powerpoint Dateienapplication/msword*.doc * .dotMicrosoft Word Dateien

Application/octet-stream

* .exeexeapplication/pdf*.pdfAdobe PDF-Dateienapplication/post*.ai * .eps * .psAdobe Post*-Dateienapplication/rtf*.rtfMicrosoft RTF-Dateienapplication/x-httpd-php*.php * .phtmlPHP-Dateien

Application/x-java*.jsserverseitige Java*-Dateienapplication/x-shockwave-flash*.swf * .cabFlash Shockwave-Dateienapplication/zip*.zipZIP-Archivdateienaudio/basic*.au * .sndSound-Dateien

* .mp3MPEG-Dateienaudio/x-midi*.mid * .midimidi-Dateienaudio/x-mpeg*.mp2MPEG-Dateienaudio/x-wav*.wavWav-Dateienp_w_picpath/gif*.gifGIF-Dateienp_w_picpath/jpeg*.jpeg * .jpg * .jpeJPEG-Dateienp_w_picpath/x-windowdump*.xwdX-Windows Dumptext/css*.cssCSS Stylesheet-Dateientext/html*.htm * .html*. shtml-Dateientext/java*.jsJava*-Dateientext/plain* .txtreine Textdateienvideo/mpeg*.mpeg * .mpg * .mpeMPEG-Dateienvideo/vnd.rn-realvideo*.rmvbrealplay-Dateienvideo/quicktime*.qt * .movQuicktime-Dateienvideo/vnd.vivo*viv * .vivoVivo-Dateien

Many webmasters want to make their website servers support flv,f4v,mp4 online playback. This article will introduce the implementation of this function under the IIS platform, taking the win7 system as an example, suitable for win2000,2003,2008.

1. Open the IIS Manager and double-click "MIME Type":

2. Click "add" on the right. In the pop-up box, fill in the file extension .f4v and MIME type video/f4v. Click "OK" and f4v will be added successfully.

3. Click "add" on the right. In the pop-up box, enter .mp4 for the file extension and video/mp4 for the MIME type. Click "OK" and mp4 will be added successfully.

4. Under win2003, open the IIS manager, and right-click the properties on the "website" on the left:

5. Switch to "HTTP header" in the pop-up interface, click "MIME Type", and then click "New":

6. Extension .FLV, MIME type application/octet-stream, click "OK" and flv will be added successfully

7. Add f4v and mp4 in the same way. WIN7 supports flv by default, so you don't need to add it. Restart IIS after adding it.

Matters needing attention

You need to restart IIS after adding the MIME type

Win7 is slightly different from 2003 and 2008, but the principle is the same.

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