【发布时间】:2017-09-08 10:53:18
【问题描述】:
我有两个目录,使用第一个目录(/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>
【问题讨论】:
-
你的第二个目录是 apache 拥有的吗?以及错误日志中的内容
标签: php apache http-status-code-403