【发布时间】:2020-04-16 00:46:35
【问题描述】:
我在主机上安装了httpd,修改了httpd.conf文件如下
ServerRoot "/etc/httpd"
Listen 80
Include conf.modules.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
<Directory />
AllowOverride none
Require all granted
</Directory>
DocumentRoot "/home/admin/domains/morabi.app/public_html"
<Directory "/var/www">
AllowOverride None
Require all granted
</Directory>
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<Files ".ht*">
Require all denied
</Files>
当我在浏览器中加载我的 IP 地址时,它显示“禁止 您无权访问此服务器上的 /。”错误。并且 /home/admin/domains/morabi.app 权限为 755 还加载了文件,但我的 ip http://x.x.x.x/ 有禁止错误
【问题讨论】:
-
我的回答现在有效吗?
标签: apache permissions centos httpd.conf httpforbiddenhandler