403 Forbidden response – 我应该寻找什么? [英] 403 Forbidden response – what should I look for?

查看:28
本文介绍了403 Forbidden response – 我应该寻找什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个脚本给我错误 403 Forbidden error,它只是另一个脚本的副本,但不同之处在于两者都使用另一个 mysql 类来访问数据库.

I have a script giving me error 403 Forbidden error, it's just a copy of another script but the difference in this is that both use another mysql class to access database.

我的整个项目已经完成,这是最后一个文件,所以我不想为单个文件再次完成整个工作.

My whole project is complete and this is last file so I don't want to do the whole work again for a single file.

服务器日志显示客户端被服务器配置拒绝:

我应该寻找什么?

我尝试了以下方法:

  • 权限为 644
  • 带有简单回显的新文件也给出了 403
  • 已更改文件夹名称

然而,index.php 完美运行.

推荐答案

如果您已拒绝 .htaccess 文件中的所有内容,则会出现此问题.更改即可解决问题.

This isssue occurs if you have had denied for all in .htaccess file. Changing that resolves the issue.

这篇关于403 Forbidden response – 我应该寻找什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆