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