How to Enable .MP4 File Video In IIS 7.5

前端 未结 2 698
抹茶落季
抹茶落季 2021-01-29 01:52

I want to open file video but it not working

I\'m tried enabled directory browsing.

Tried run aspnet_regiis.exe -i

<
相关标签:
2条回答
  • 2021-01-29 02:21

    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.

    0 讨论(0)
  • 2021-01-29 02:26

    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

    0 讨论(0)
提交回复
热议问题