我刚刚用我的 Laravel 8 项目设置了一个 CentOS 8 服务器。如果我编辑 /etc/httpd/conf/httpd.conf
并更改文档根目录,我可以让我的项目显示出来,但是,我还有两个文件夹:
我在 sites-available
内部设置了一个虚拟主机,并按照 guide 符号链接到 sites-enabled
,我已经重新启动了多次 httpd,但一直在使用 Apache测试页仍在读取网络服务器上的 html
文件夹。
我的 httpd.conf
文件底部有以下内容:
# Supplemental configuration
#
# Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf
IncludeOptional sites-enabled/*.conf
所以它应该可以工作。我可能会错过什么?我已经将 http/s 变体添加到防火墙并关闭了 selinux。