403 Forbidden on Web Sharing

Discussion in 'macOS' started by Alterscape, Apr 28, 2008.

  1. Alterscape macrumors newbie

    Joined:
    Mar 20, 2008
    #1
    I'm attempting to set up personal web sharing on my more-or-less stock Leopard install. I've turned on Web Sharing from the control panel, and http://localhost/ gets me the apache default install page. However, http://localhost/~myusername/ results in a 403 Forbidden error. I haven't edited httpd.conf, and I'm pretty sure that it's working correctly -- http://localhost/~fakeusername/ results in a 404. When I "get info" on my ~/myusername/sites/ directory, I see that I have R/W, "unknown" has R, "everyone" has R.

    Any idea how to convince Apache it wants to serve my pages? I know I could just download MAMP, but now the principle of the thing is bugging me..
     
  2. FredLoney macrumors newbie

    Joined:
    Jun 3, 2008
    #2
    Three possibilities:

    o you need a /etc/apache2/users file as described in http://docs.info.apple.com/article.html?artnum=306884

    o the ~/Sites/index.html file is missing

    o your home directory permissions don't allow world access. Correct with:

    chmod a+rx ~

    from a terminal window.
     

Share This Page