特定 .pdf 文件的 HTTP 错误 401.3

发布于 2024-08-24 13:20:39 字数 151 浏览 3 评论 0原文

我刚刚在我的服务器上上传了两个 .pdf 文件。它们都在同一个文件夹中。

第一个可以正常访问,但对于第二个我得到一个 HTTP 错误 401.3“您无权查看此页面”

这对我来说看起来很奇怪。您知道为什么会发生这种情况吗?

I just uploaded two .pdf files on my server. They are both in the same folder.

The first one can be normally accessed but for the second one I get an
HTTP Error 401.3 "You are not authorized to view this page"

This looks weird to me. Do you have any idea why is this happening?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

╄→承喏 2024-08-31 13:20:39

如果您运行的是 Linux,请检查文件系统权限。运行网络服务器的用户应该对这两个文件具有读取权限,您可以使用大多数 ftp 软件执行此操作,或者如果您具有 shell 访问权限 chmod a+r /path/to/your/file.pdf

如果确实如此不解决问题通常在日志文件/var/log/apache/error.log中查找错误

check filesystem permission if you are running linux. the user running the webserver should have read permission on both files you can do this with most ftp software or if you have shell access chmod a+r /path/to/your/file.pdf

if that does not solve the problem look for error in log file usually /var/log/apache/error.log

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文