Apache别名禁止访问

Apache别名禁止访问,apache,http-status-code-403,apache2.4,fedora-25,Apache,Http Status Code 403,Apache2.4,Fedora 25,Apache无法为DocumentRoot之外的文件夹提供别名 Alias /hello /test <Directory "/test"> Options FollowSymLinks AllowOverride FileInfo Order Allow,Deny Allow from All Require all granted </Directory> Alias/hello/test 选项如下符号链接 AllowOverride文件信息

Apache无法为DocumentRoot之外的文件夹提供别名

Alias /hello /test

<Directory "/test">
  Options FollowSymLinks
  AllowOverride FileInfo
  Order Allow,Deny
  Allow from All
  Require all granted
</Directory>
Alias/hello/test
选项如下符号链接
AllowOverride文件信息
命令允许,拒绝
通融
要求所有授权
Soruce:

我不得不跑:

chcon-R--reference=/var/www/test

说明:

如果运行安全增强型Linux(SELinux)


出现此错误的另一种可能性是您正在运行SELinux(安全增强型Linux),在这种情况下,您需要使用chcon将适当的安全上下文应用于目录。一个简单的方法是从一个确实有效的目录中复制,例如/var/www/

是您解释的来源吗?我在另一个博客中找到了它,但这似乎是原始的soruce。