Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm attempting to embed .mp4 and .webm video files in a webpage and IIS doesn't appear to be recognizing the file extensions.

I read that I needed to add the MIME types for each extension in IIS.

I added .mp4 extension with a mime type of video/mpeg (also tried video/mp4) and .webm with mime type video/webm.

After adding the MIME types I restarted IIS using iisreset command in the command prompt.

No joy.

I've been testing functionality with a html file that links to the video files. I receive a 404 page not found error message when clicking mp4 or webm link.

I have tested the functionality outside the webserver root directory and both videos can be played /opened.

What am I missing?

Thanks.

share|improve this question

1 Answer 1

What do you mean by "I have tested the functionality outside the webserver root directory and both videos can be played /opened"? If the web server actually sent them to a web browser even one single time, then this is not a MIME-type issue (othewise that would apply always), but probably some configuration issue in your site's root directory (redirection, URL rewriting, etc.).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.