This topic created in 4225 days ago, the information mentioned may be changed or developed.
各位早,我使用Yosemite自带的apache作为本地服务器,根目录是Library/WebServer/Documents,然后localhost是可以访问的,但是为什么访问下面的任何子目录都会提示「Forbidden
You don't have permission to access /anyfolder/ on this server.」呢?求解:(
4 replies • 2014-10-24 09:36:39 +08:00
 |
|
1
popbones Oct 23, 2014 1
那你的anyfolder的权限是什么样子的呢?
|
 |
|
2
Yuguo Oct 23, 2014 1
1. 检查目录权限是否为766 2. 访问目录下的某个文件,比如index.html看是否可以访问,如果可以,再试试index.php,我之前遇到过没有开启php模块的情况
|
 |
|
3
bearcat001 Oct 23, 2014 via iPhone 1
把documents目录改成755权限,我的dropbox目录是这个问题
|