简体   繁体   English

绝对存在的文件的404错误

[英]404 error for a file that is absolutely there

I am getting a 404 error for a file that is absolutely there. 我收到绝对存在的文件的404错误。

It's at location domain.com/video/videoname.mp4 . 该文件位于domain.com/video/videoname.mp4位置。 When I try to play it using Flash, it says video not found or access denied. 当我尝试使用Flash播放时,显示未找到视频或访问被拒绝。

It keeps giving not found errors. 它不断给出未发现的错误。

When I navigate to domain.com/video/ , videoname.mp4 appears very clearly there. 当我导航至domain.com/video/ ,videoname.mp4在那里显示得非常清楚。 However, when I click it, it gives a 404 error. 但是,当我单击它时,它会显示404错误。

Would this be a permissions issue? 这会是权限问题吗?

It's a Windows server, which I'm less useful. 这是Windows服务器,我用处不大。 There's also an IIS install, but it isn't used in the actual administration of this particular site. 还有一个IIS安装,但在此特定站点的实际管理中未使用它。

My guess is a server setting or a permissions setting, but I'm trying to do a sanity check here. 我的猜测是服务器设置或权限设置,但是我试图在此处进行健全性检查。

You can setup the IIS server to run under a specific account one that doesn't have access issues. 您可以将IIS服务器设置为在没有访问问题的特定帐户下运行。 I would just make sure you create an application account to do this and don't put it on a user account. 我只是确保您创建一个应用程序帐户来执行此操作,并且不要将其放在用户帐户中。 I know that there are IUSR accounts that are the default accounts that are used by IIS these default accounts might have the permission issues. 我知道有IUSR帐户是IIS使用的默认帐户,这些默认帐户可能存在权限问题。

Another possibility is that the MIME type for the video is not setup properly. 另一种可能性是视频的MIME类型设置不正确。 You could put a basic html file in this directory to test to see if the extension MIME mapping might be a problem. 您可以在此目录中放置一个基本的html文件,以测试扩展名MIME映射是否可能是一个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM