MAC OS X Xampp 访问被禁止 [英] MAC OS X Xampp Access forbidden
问题描述
我已经在我的 MAC 中安装了 XAMPP.
I have installed the XAMPP in my MAC.
我刚刚尝试打开一个文件夹,它返回了错误 403:禁止访问!
And i just tryed to open a folder and it's returned a error 403: Access forbidden!
我在论坛上读到我需要更改 httpd 存档,但是,更改后,没有更改,错误访问被禁止!在我的文件夹/网站上继续.
I read on foruns that i need to change the httpd archive, but, after the changes, no change, the error Access forbidden! on my folder/sites continues.
我更改的 http.conf 在这里:Applications/XAMPP/xamppfiles/apache2/conf"
The http.conf that i have changed are here: "Applications/XAMPP/xamppfiles/apache2/conf"
Alias /bitnami/ "/Applications/XAMPP/xamppfiles/apache2/htdocs/"
Alias /bitnami "/Applications/XAMPP/xamppfiles/apache2/htdocs"
<Directory />
Options All
AllowOverride All
Order deny,allow
Allow from all
</Directory>
谢谢!
推荐答案
这个链接真的很有帮助.
您需要的只是权利.我没有启用虚拟主机.
All you need is rights. I didn't enable virtual hosts.
我刚刚在 /Applications/XAMMP/xammpfiles/etc/httpd.conf
中的 User yourUserName
上替换了 User daemon
,所以我可以访问到我的自定义文件夹(在我的情况下通过 htdocs 文件夹中的符号链接).
I just replaced User daemon
on User yourUserName
in /Applications/XAMMP/xammpfiles/etc/httpd.conf
, so I got access to my custom folders (through symlinks in htdocs folder in my case).
这篇关于MAC OS X Xampp 访问被禁止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!