所以我试图更改我的 apache 的 DocumentRoot,但出于某种奇怪的原因,它似乎忽略了文件 /etc/apache2/sites-available/00-default.conf
这是文件的内容:
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last …Run Code Online (Sandbox Code Playgroud)