Apache 默认目录



假设我们在/etc/apache2 中安装了 apache,并且我们有以下配置:

DocumentRoot "/var/www/html/TestWebsite"
<Directory />
Options FollowSymLinks
require all granted
</Directory>

我有一个关于目录'/'的简单问题,它是指向 apache 目录(在我的情况下/etc/apache2(还是指向 DocumentRoot 路径(/var/www/html/TestWebsite(,还是指向linux system root directory

它的Linux根目录。您需要将文档根中的符号链接链接到 Docroot 之外的位置,以避免系统扫描等。

如果是DocRoot。

最新更新