Forbidden 您无权访问/ 在此服务器上。服务器无法读取 htaccess 文件,为了安全拒绝访问
Forbidden You don't have permission to access / on this server. Server unable to read htaccess file, denying access to be safe
现在我在我的整个经销商帐户的一个站点中收到此消息:Forbidden
You don't have permission to access / on this server. Server unable to
read htaccess file, denying access to be safe
Additionally, a 403 Forbidden error was encountered while trying to
use an ErrorDocument to handle the request.
事情突然发生了。我尝试将 root htaccess 重命名为其他名称,但错误仍然存在,我什至尝试为该文件设置 744 权限,仍然是同样的事情。当前该文件使用默认文件权限 644。
错误发生在:http://lucrebem.com.br
您需要在您的 Apache 配置中添加一个 <Directory
块
<Directory "/path/to/source/file/directory/www">
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
这授予所需的权限
所以问题是 public_html 文件夹将权限更改为 744,但我从未更改过。我解决了它将权限更改为 750。
但是我怎么看日志???
因为我从未对该文件夹进行过任何更改,所以恐怕它可能是一次攻击。
打开您的 cPanel -> 转到 'addon domain' -> 然后转到 'modify addon domain' 部分 -> 然后单击编辑 'document root' -> 单击 chenge 图标 -> 然后只需单击在 'Change' 按钮上
就这些了。
对我有用。
现在我在我的整个经销商帐户的一个站点中收到此消息:Forbidden
You don't have permission to access / on this server. Server unable to read htaccess file, denying access to be safe
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
事情突然发生了。我尝试将 root htaccess 重命名为其他名称,但错误仍然存在,我什至尝试为该文件设置 744 权限,仍然是同样的事情。当前该文件使用默认文件权限 644。 错误发生在:http://lucrebem.com.br
您需要在您的 Apache 配置中添加一个 <Directory
块
<Directory "/path/to/source/file/directory/www">
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
这授予所需的权限
所以问题是 public_html 文件夹将权限更改为 744,但我从未更改过。我解决了它将权限更改为 750。 但是我怎么看日志??? 因为我从未对该文件夹进行过任何更改,所以恐怕它可能是一次攻击。
打开您的 cPanel -> 转到 'addon domain' -> 然后转到 'modify addon domain' 部分 -> 然后单击编辑 'document root' -> 单击 chenge 图标 -> 然后只需单击在 'Change' 按钮上
就这些了。
对我有用。