This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9565|Reply: 0

[Web] MP4 cannot be played on IIS application server

[Copy link]
Posted on 3/30/2015 10:39:46 AM | | | |

Today, colleagues from other departments asked about the xx forum that could not be opened, and I checked the reason why the two websites of the department were upgraded a few years ago, but this forum was not migrated. The server was also replaced. I thought it was very simple, so I copied the previous folders directly to the corresponding root directory of the new application server, thinking that everything was fine, checked carefully, sent a video that could not be opened, and started to look for the reason, it turned out that it used to be under the linux system, the application server was apache+resin, and now it is under win2000, the application server is IIS, and you need to configure IIS. The specific reason is that this is actually a kind of protection for files by IIS, and files that are not in the MIME type specified by IIS will obviously not be operated.

Common files with extensions such as mp4 / flv / iso / 7z / apk are not specified in IIS, and such files cannot be downloaded by default in IIS.

We can open IIS on the xx local server and right-click on -> Properties and then see the MIME format that is already in MIME Type

For example, we need IIS to support MP4 file download, we can set it like this: (Here we set the global setting of IIS, if it is only for a certain site, we can directly set the site)

1. Right-click on the website and select Properties

2. Select the HTTP header on the Website Properties that opens, and then click the MIME type button

3. Click New in the open window

4. On the pop-up MIME type box extensionMP4MIME types are:application/octet-stream


This way IIS can support MP4 downloading.






Previous:Play with Angry Birds
Next:Is there anyone bathing in the fountain in Wuhan Optics Valley Pedestrian Street World City?
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com