Apache默认目录
假设我们在/etc/apache2中安装了apache,并且我们有以下配置:Apache默认目录,apache,apache2,apache2.4,apache2.2,Apache,Apache2,Apache2.4,Apache2.2,假设我们在/etc/apache2中安装了apache,并且我们有以下配置: DocumentRoot "/var/www/html/TestWebsite" <Directory /> Options FollowSymLinks require all granted </Directory> DocumentRoot”/var/www/html/TestWebsite“ 选项如下符号链接 要求所有授权 我有一个关于目录'/'的简单问题,它是指向
DocumentRoot "/var/www/html/TestWebsite"
<Directory />
Options FollowSymLinks
require all granted
</Directory>
DocumentRoot”/var/www/html/TestWebsite“
选项如下符号链接
要求所有授权
我有一个关于目录
'/'
的简单问题,它是指向apache目录(/etc/apache2
,在我的例子中)还是指向DocumentRoot路径(/var/www/html/TestWebsite
),还是指向linux系统根目录
?它的linux根目录。您需要将docroot中的符号链接到docroot之外的位置,以避免系统扫描等
在这种情况下,它将是DocRoot