Why Server says - 404 - File or directory not found. while file exist?

夙愿已清 提交于 2019-12-07 20:39:54

问题


I want to play an mp4 file using flowplayer and ASP.NET. my video file placed at location :

http://domain.com/website/files/dd/dd21f5c6-8721-4f12-81a7-0afb9d7d7bfa.mp4

but my flow player don't play the file.

when i type this address in address bar i got following error :

404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

The file exist in the path specified.

can anyone help me about this issue?

Thanks


回答1:


There is a good chance your webserver is not configured to serve mp4 files. You can add the mime type to your server.

Here you can read how to do this in windows IIS 7 http://technet.microsoft.com/nl-nl/library/cc753281(v=ws.10).aspx

addition, a better link maybe: http://blogs.iis.net/bills/archive/2008/03/25/how-to-add-mime-types-with-iis7-web-config.aspx




回答2:


Some hostingproviders place another .htaccess file deep somewhere in your media library, which in my case contained this:

<Files *.php>
deny from all
</Files>

Removing this file did the trick for me.

Docs: http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#Deny




回答3:


Reasons for this error are: 1. File may not be in the specified location. 2. The server may not recognize the specified type of file.



来源:https://stackoverflow.com/questions/24654907/why-server-says-404-file-or-directory-not-found-while-file-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!