403 访问禁止错误

403 Access Forbidden Error

我有两个目录,使用 (/var/www/html) 的第一个目录,我的页面在包含 index.html 文件后显示完美。然后我创建了第二个目录 (/home/xsol/website) 并创建了另一个 index.html 文件。但是,对于第二个目录,即使我已经为该文件提供了 chmod -r 755,您也会在页面上看到 403 禁止错误。我的 httpd.conf 文件如下

<Directory "/home/xsol/website">
    Options Indexes FollowSymLinks Includes ExecCGI

    AllowOverride All

    Require all granted 
</Directory>

<Directory "/var/www/html">
    Options Indexes FollowSymLinks

    AllowOverride None

    Require all granted    
</Directory>

/home/xsol 目录中尝试 chmod -R 755 并将这些设置添加到新目录

Order allow,deny
Allow from all
Require all granted