Apache localhost 403 error with Yosemite

后端 未结 7 2007
旧巷少年郎
旧巷少年郎 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:16

    Edit the file: /private/etc/apache2/httpd.conf

    on line 250 (in Yosemite) change:

    Options FollowSymLinks Multiviews
    

    to:

    Options FollowSymLinks Multiviews Indexes
    

    then in the Terminal run:

    sudo apachectl restart
    

提交回复
热议问题