XAMPP在尝试访问符号链接文件夹中的文件时出现“访问被禁止”的错误提示。

3
当我尝试访问我在htdocs目录中创建的符号链接文件夹中的文件和目录时,XAMPP会给出“访问被禁止”的错误。如何让XAMPP停止返回此错误,并开始返回我在符号链接目录中寻找的文件?请注意以下内容,这是我根据类似问题尝试过的方法:
  • I am running this on localhost
  • XAMPP is activated, as I get a splash page when accessing localhost
  • XAMPP can read files I add to htdocs, as I have added an index.html file which is readable
  • The symlink, symlinked directory, and the subdirectories all have 755 perms, and the files I try to access are world-readable
  • /Applications/XAMPP/xamppfiles/etc/httpd.conf has:

    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
    <Directory "/Applications/XAMPP/xamppfiles/htdocs">
        Options Indexes FollowSymLinks ExecCGI Includes
        AllowOverride All
        Require all granted
    </Directory>
    
  • I am running XAMPP 1.8.3 (latest version, downloaded today) on Mac OS X 10.9

谢谢!


更新:我能够通过使用MAMP解决这个问题,但我仍然不知道为什么我一开始在XAMPP上遇到了这个问题。 - einnocent
1个回答

0

有一些指令需要以 +- 开头,FollowSymLinks 是其中之一。如果你需要启用符号链接,则需要使用 +FollowSymLinks,如果不需要,则需要使用 -FollowSymLinks

你可以在这里阅读更多关于选项指令的信息。

我在SO上发现了另一个问题这里


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接