符号链接MAMP文件夹造成403禁止 [英] Symlinked MAMP Folder Causing 403 Forbidden

查看:815
本文介绍了符号链接MAMP文件夹造成403禁止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文件夹在我的根目录下MAMP,站点。我有一个符号链接到〜/文档/保管箱/站点文件夹,因此在现场无论发生什么事情被转移到Dropbox的。

I have a folder in my root MAMP directory, "site". I have that symlinked to a folder in ~/Documents/Dropbox/site, so whatever happens in "site" gets transferred to Dropbox.

然而,当我这样做,我得到试图查看本地主机/网站当一个403 Forbidden错误 - 这是一个问题,因为我使用PHP和我应该修复的php.ini,或者这是一个httpd.conf中的问题?

However, when I do this, I get a 403 forbidden error when trying to view localhost/site- is this a problem because I'm using PHP and I should fix php.ini, or is this an httpd.conf problem?

在httpd.conf中,我有的AllowOverride 设置为

In httpd.conf, I have AllowOverride set to None.

感谢提前任何答案。

推荐答案

还有Apache中的的FollowSymLinks 选项,一般默认为禁用。您可以通过执行启用它

There's also the FollowSymlinks option in Apache, which is generally disabled by default. You can enable it by doing

Options +FollowSymlinks

这篇关于符号链接MAMP文件夹造成403禁止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆