#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2014
    Posts
    31
    Rep Power
    5

    web.config error - webm, ttf, ogv


    Hello,

    I am having issues adding extensions to the web.config file.
    I made it because it was returning webm files with a 404 error despite being on there.

    when I upload this to the root folder of my godaddy hosted server, it gives me an error "The page cannot be displayed because an internal server error has occurred."

    Is it returning an error because it is poorly formatted or why else?

    thanks

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
        <configuration>
        <system.webServer>
        <staticContent>
        <remove fileExtension=".svg"/>
        <remove fileExtension=".ttf"/>
        <remove fileExtension=".eot"/>
        <remove fileExtension=".woff"/>
        <remove fileExtension=".woff2"/>
        <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
        <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
        <mimeMap fileExtension=".m4v" mimeType="video/m4v" />
        <mimeMap fileExtension=".ogv" mimeType="video/ogg" />
        <mimeMap fileExtension=".webm" mimeType="video/webm" />
        <mimeMap fileExtension=".ttf" mimeType="application/octet-stream" />
        <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
        <mimeMap fileExtension=".woff" mimeType="pplication/x-font-woff" />
        <mimeMap fileExtension=".woff2" mimeType="font/woff2" />
        </staticContent>
        </system.webServer>
        </configuration>
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,565
    Rep Power
    4550
    Did you find an answer for this? I can't help, haven't used IIS since IIS6, sorry
    ======
    Doug G
    ======
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2014
    Posts
    31
    Rep Power
    5
    Code:
        <configuration>
        <system.webServer>
        <staticContent>
        <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
        <mimeMap fileExtension=".m4v" mimeType="video/m4v" />
        <mimeMap fileExtension=".ogv" mimeType="video/ogg" />
        <mimeMap fileExtension=".webm" mimeType="video/webm" />
        </staticContent>
        </system.webServer>
        </configuration>
    this seemed to work
  6. #4
  7. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,565
    Rep Power
    4550
    Thank you for posting the solution!
    ======
    Doug G
    ======
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo