V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ZhaoMiing
V2EX  ›  macOS

Yosemite 本地服务器环境搭建权限问题

  •  
  •   ZhaoMiing · 2014-10-23 09:37:23 +08:00 · 3799 次点击
    这是一个创建于 3473 天前的主题,其中的信息可能已经有所发展或是发生改变。
    各位早,我使用Yosemite自带的apache作为本地服务器,根目录是Library/WebServer/Documents,然后localhost是可以访问的,但是为什么访问下面的任何子目录都会提示「Forbidden
    You don't have permission to access /anyfolder/ on this server.」呢?求解:(
    4 条回复    2014-10-24 09:36:39 +08:00
    popbones
        1
    popbones  
       2014-10-23 10:32:05 +08:00   ❤️ 1
    那你的anyfolder的权限是什么样子的呢?
    Yuguo
        2
    Yuguo  
       2014-10-23 11:09:20 +08:00   ❤️ 1
    1. 检查目录权限是否为766
    2. 访问目录下的某个文件,比如index.html看是否可以访问,如果可以,再试试index.php,我之前遇到过没有开启php模块的情况
    bearcat001
        3
    bearcat001  
       2014-10-23 16:21:37 +08:00 via iPhone   ❤️ 1
    把documents目录改成755权限,我的dropbox目录是这个问题
    ZhaoMiing
        4
    ZhaoMiing  
    OP
       2014-10-24 09:36:39 +08:00
    @popbones
    @Yuguo
    @bearcat001
    感谢各位,确实是文件夹权限的问题。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2695 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 15:29 · PVG 23:29 · LAX 08:29 · JFK 11:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.