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

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

  •  
  •   jimmy · 2012-08-08 10:33:53 +08:00 · 4111 次点击
    这是一个创建于 4297 天前的主题,其中的信息可能已经有所发展或是发生改变。
    开启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-08-08 10:48:39 +08:00
    還是自己編譯nginx吧
    sephrioth
        2
    sephrioth  
       2012-08-09 19:13:38 +08:00
    MAMP PRO 伺候...
    quake0day
        3
    quake0day  
       2012-08-10 08:55:12 +08:00
    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   ·   实用小工具   ·   1070 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:22 · PVG 06:22 · LAX 15:22 · JFK 18:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.