How to Enable .MP4 File Video In IIS 7.5

回眸只為那壹抹淺笑 提交于 2021-02-05 09:31:10

问题


I want to open file video but it not working

I'm tried enabled directory browsing.

Tried run aspnet_regiis.exe -i

Finally

How to open it? How to make it working? Thank you!


回答1:


According to your description, I suggest you could add below config to set the MP4 mime map setting for your IIS web application.

<?xml version="1.0"?>
<configuration>
  <system.webServer>
    <staticContent>
      <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
      <mimeMap fileExtension=".m4a" mimeType="video/mp4" />
    </staticContent>
  </system.webServer>
</configuration>

More details, you could refer to below article: https://blogs.iis.net/bills/how-to-add-mime-types-with-iis7-web-config




回答2:


Hi i know is a old post but i hope that it can help you

1.- First create a folder into C:\inetpub\wwwroot example : resources

2.- Open IIS or windows + R and write inetmgr

3.- You'll see the folder you just created

4.- select the folder for this example "resources" and you'll see on the right all option to config

select and open "directory browsing" there's an option to change disabled/enable put it on enable and save changes

5.- Open browser and type the ip or url of your site and you'll see the files

6.- if you can't open the file check if the MIME Types and add the format of the resource.

This changes will be on Resources Folder or in the folder that you're working.



来源:https://stackoverflow.com/questions/54758356/how-to-enable-mp4-file-video-in-iis-7-5

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!