我有一台装有 Ubuntu 18.04.4 的服务器,并且安装了 Apache 2.4.29,但是当我在 Web 浏览器上输入服务器的 URL 时,只会出现一个空白页。没有任何错误或任何东西。
这是我当前的 ufw 状态:
(TCDigitalVenv) linuxmidtc@servermidtc:/var/log/apache2$ sudo ufw status numbered
[sudo] password for linuxmidtc:
Status: active
To Action From
-- ------ ----
[ 1] Apache Full ALLOW IN Anywhere
[ 2] 22/tcp ALLOW IN Anywhere
[ 3] 80 ALLOW IN Anywhere
[ 4] 80/tcp ALLOW IN Anywhere
[ 5] Apache ALLOW IN Anywhere
[ 6] Apache Full (v6) ALLOW IN Anywhere (v6)
[ 7] 22/tcp (v6) ALLOW IN Anywhere (v6)
[ 8] 80 (v6) ALLOW IN Anywhere (v6)
[ 9] 80/tcp (v6) ALLOW IN Anywhere (v6)
[10] Apache (v6) ALLOW IN Anywhere (v6)
我一直在关注本指南,但是我对 Apache 还很陌生,所以我不知道我做错了什么。
编辑 这些是我用来安装 Apache 的命令:
sudo apt upgrade
sudo apt install apache2 apache2-dev ufw
sudo ufw allow 'Apache Full'
我没有收到结果消息,但是没有收到任何错误,但有一个警告:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive