Apache提示You don't have permission to access / on this server问题解决

冷不防 2022-05-20 22:04 203阅读 0赞

在httpd.conf文件下找到这段:

  1. <span style="font-size: x-small;">#
  2. # Each directory to which Apache has access can be configured with respect
  3. # to which services and features are allowed and/or disabled in that
  4. # directory (and its subdirectories).
  5. #
  6. # First, we configure the "default" to be a very restrictive set of
  7. # features.
  8. #
  9. <Directory />
  10. Options FollowSymLinks
  11. AllowOverride None
  12. Order deny,allow
  13. Deny from all
  14. </Directory></span>

将之修改为

Conf代码

  1. <span style="font-size: x-small;"># 允许指向外部的目录进行访问
  2. <Directory />
  3. Options Indexes FollowSymLinks
  4. AllowOverride None
  5. </Directory></span>

然后重启apache

发表评论

表情:
评论列表 (有 0 条评论,203人围观)

还没有评论,来说两句吧...

相关阅读