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

Mac 10.7上配置Apache的目录,想指定到自定义目录一直不成功什么原因?

  •  
  •   jimmy · 2012 年 8 月 8 日 · 4585 次点击
    这是一个创建于 4910 天前的主题,其中的信息可能已经有所发展或是发生改变。
    开启Web Share之后只修改了两处:
    httpd.conf里开启了php5支持,Vhost支持。
    然后在extra/httpd-vhost.conf里添加了个虚拟站点,使用sudo apachectl -t检查没问题,但是运行的时候却报403,不知道什么原因造成的,要怎么解决?
    PS: 使用系统自带的路径访问却是正常的……

    不小心发了一篇到MBP节点里,能不能删除啊那篇。
    3 条回复    1970-01-01 08:00:00 +08:00
    waredugu
        1
    waredugu  
       2012 年 8 月 8 日
    還是自己編譯nginx吧
    sephrioth
        2
    sephrioth  
       2012 年 8 月 9 日
    MAMP PRO 伺候...
    quake0day
        3
    quake0day  
       2012 年 8 月 10 日
    Create the directory structure
    First set up the directory to hold the files, I call my directory public_beta in my home folder. I normally create a new directory in my home directory for each virtual host, but you could create sub directories under a main web folder.
    $ mkdir ~/public_beta
    Next give the folder and contents permissions of 755 so Apache can read the contents.
    $ chmod -R 755 public_beta
    Change the permissions of $HOME
    Also make sure you home directory has permissions set to 711 so Apache can access your home directory, replace user_name with your login username.
    $ cd /home
    $ chmod 711 user_name
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   934 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 19:26 · PVG 03:26 · LAX 11:26 · JFK 14:26
    ♥ Do have faith in what you're doing.