当我通过HTTP访问* .mp4文件时,为什么会出现错误404? [英] Why the error 404 happens when I access *.mp4 file by HTTP?
问题描述
我在HTTP上有一些共享文件夹。让我们说: http:// myserver / files
还有一些像png这样的文件,avi,jpg,mp4等。
我可以通过浏览器轻松访问* .png或* .avi(http://myserver/files/555.avi)但无法访问* .mp4。
所以IIS给出了404错误。
什么事?
谢谢!
更新:
可能很重要:我必须访问通过此URL格式
http://112.333.44.33/files/555 .mp4
所以我找到了解决方案。
<我只是在我的网站上添加了正确的MIME类型。
扩展名: mp4
MIME类型: video / mpeg
现在它运行正常。
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
http://112.333.44.33/files/555.mp4
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.
这篇关于当我通过HTTP访问* .mp4文件时,为什么会出现错误404?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!