我已经为网站设置了 Apache 服务器,但收到以下错误禁止“403 您无权访问此资源。”当我按照以下配置文件“/etc/httpd/conf/httpd.conf”时:
DocumentRoot "/home/bggb/bggb/branch-admin/"
Relax access to content within /var/www.
<Directory "/home/bggb/bggb/branch-admin">
AllowOverride None
# Allow open access:
Require all granted
</Directory>
Further relax access to the default document root:
<Directory "/home/bggb/bggb/branch-admin/">
我已尝试在下面授予 Apache 服务器权限:
sudo chown -R apache:apche /home/bggb/bggb/
sudo chgrp -R apache /home/bggb/bggb/
suod find /home/bggb/bggb/ -type d -exec chmod g+rx {} +
sudo find /home/bggb/bggb/ -type f -exec chmod g+r {} +
当根目录设置为“/home/bggb/bggb/”时,如何为Apache服务器授予适当的权限?