I have some shared folder over HTTP. Lets say: http://myserver/files
And there are some filed like png, avi, jpg, mp4 and etc.
I can easily access *.png or *.avi via browser (http://myserver/files/555.avi) but cannot access to *.mp4.
So IIS gives the 404 error.
What's up?
Thank you!
UPDATES:
May be it is important: I have to access by this URL format
I just found the cause of the issue in my cpanel who give me this 404 on mp4 problem maybe is useful for someone, the file manager v3 happen to change the first character of the name of ".mp4" to a capital letter, so i get back and change my html and it works.
So I found the solution.
I just added correct MIME type to my website.
Extension: mp4
MIME type: video/mpeg
And now it works fine.
I just had that issue, and I compared my IIS10 (win10) and IIS 7.5 (win2008 R2) applicationhost.config files, and these are the changes I sent from iis10 to iis75.
29 new types, and 5 modified.
Watch out for .ts if you use typescript... ts was a video file before being a programming language file
Add a MIME type with extension mp4 in IIS
But please note that you should set the MIME type video/mp4 instead of video/mpeg orelse in IE "Save Target As.." shows different format, and it also affects the default video player open by browser.