我在主机上安装了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://xxxx/有禁止错误