正如我的用户 ID 所示,我是一名新手程序员。
我正在 ubuntu 中尝试一个简单的 Apache 服务器配置,
我使用以下代码在 /etc/apache2/sites-available/awesome.conf 中创建了以下 .conf 文件。我还在 /etc/apache2/sites-enable 中创建了一个符号链接并重新启动了 Apache。
<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 …Run Code Online (Sandbox Code Playgroud)