我的apache2 VirtualHost一直显示"It's working"而不是我的网站



我正在为学校做一个项目,我必须在网络服务器上托管 2 个页面。我选择使用 Apache2 做一个虚拟主机,但是当它一直向我显示"它有效"页面时。该页面位于此处。

我们正在使用DNS服务器,但问题似乎不是来自此服务器。

这是其中一个.conf文件:

<VirtualHost *:80>
ServerAdmin jongen.philemon@wt5.ephec-ti.be
ServerName wt5.ephec-ti.be
ServerAlias www.wt5.ephec-ti.be
DocumentRoot /var/www/monsite
<Directory /><br>
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/monsite>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>

我还像这样更改了apache2.conf

<VirtualHost *:80>
ServerAdmin jongen.philemon@wt5.ephec-ti.be
DocumentRoot /var/www/site
<Directory /var/www/site/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order deny,allow
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

您还可以在GitHub上查看我们的wiki,以查看我遵循的所有步骤。

谢谢的

我必须通过使用Dockerfile重新做来修复它。如果您有同样的问题,我更新了我的 github 上的文件和 wiki!

最新更新