所以我刚刚安装了一个带有 Ubuntu 13.10 的虚拟机。我想在更新我的 ubuntu 12.04 服务器之前使用 apache 2.4.6。我希望我的文档根目录位于我的主文件夹中,因此我在etc/apache2/sites-available/000-default.conf
当我这样做时,我只会收到禁止的消息。我将新文件夹权限设置为 777,但仍然被禁止。我什至在新目录中放了一个 index.html 文件,它只是说 hello world 但什么也没有。这是我的 000-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) …Run Code Online (Sandbox Code Playgroud)