【发布时间】:2013-12-05 05:38:19
【问题描述】:
当我尝试访问我在 htdocs 目录中创建的符号链接文件夹中的文件和目录时,XAMPP 会出现“禁止访问”错误。如何让 XAMPP 停止返回此错误,而是开始返回我在符号链接目录中查找的文件?
请注意以下内容,我根据类似问题尝试过:
- 我在
localhost上运行这个 - XAMPP 已激活,因为我在访问
localhost时得到一个启动页面 - XAMPP 可以读取我添加到
htdocs的文件,因为我添加了一个可读的index.html文件 - 符号链接、符号链接目录和子目录都具有
755权限,并且我尝试访问的文件是全球可读的 -
/Applications/XAMPP/xamppfiles/etc/httpd.conf有:DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs" <Directory "/Applications/XAMPP/xamppfiles/htdocs"> Options Indexes FollowSymLinks ExecCGI Includes AllowOverride All Require all granted </Directory> 我在 Mac OS X 10.9 上运行 XAMPP 1.8.3(最新版本,今天下载)
谢谢!
【问题讨论】:
-
更新:我可以通过使用 MAMP 来解决这个问题,但我仍然不知道为什么我首先遇到了 XAMPP 的问题。