1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

xml web-config mp4 mime webm

Discussion in 'HTML & Website Design' started by 7643sfsag6, Jul 7, 2015.

  1. #1
    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


    <?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>
     
    7643sfsag6, Jul 7, 2015 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #2
    What server system is that "web.config" file for? Not aware of any that even accepts XML that way... Oh, wait, there's ASP-tardery, so IIS? There's a reason only fools host on windows server.

    Is this actually an ASP application, or are you trying to throw ASP-tardery at non-windows hosting?

    You may have better luck with this question in the ASP.NET section of the forums... but really my advice, nuke the server from orbit and put a *nix distro in there. Windows is for desktops, linux is for servers, and never shall the 'twain meet. Just as I find Linsux a rinky useless buggy unreliable crippled toy on the desktop, Winblows is a rinky useless buggy unreliable crippled toy as a server.

    No matter how many die-hard fans of either will try to tell you it's fine either way.
     
    deathshadow, Jul 7, 2015 IP
  3. 7643sfsag6

    7643sfsag6 Member

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #4
    hi @deathshadow. yes i totally agree. turns out it was a syntax error. I will be jumping ship from godaddy ASAP!
     
    7643sfsag6, Jul 9, 2015 IP