Apache localhost 403 error with Yosemite

后端 未结 7 2009
旧巷少年郎
旧巷少年郎 2021-01-30 01:37

I\'ve just installed Mac OS X Yosemite fresh. I configured Apache and chmodded \"users/user/Sites\" to 755. When I hit localhost I receive a 403 Forbidden \"You don\'t hav

7条回答
  •  孤独总比滥情好
    2021-01-30 02:05

    The advice in this article helped me.

    Specifically the "Yosemite Only" section:

    First, there is a directive that helps secure your machine by denying access to the entire file system by default. I’ll show you how to remove this directive, since I find that easier on a machine meant for development. The section of code runs from line 220 through 223. You can comment out (place ‘#’ in front of each line) or just remove this section.

    And the section is ...

    
     AllowOverride none
     Require all denied
    
    

    Note:

    As others have followed up on this with more details, the method outlined above can be insecure.

提交回复
热议问题