How do I change apache2 DocumentRoot (default snow leopard install) and not get "You don't have perm

Posted by David Peek on Stack Overflow See other posts from Stack Overflow or by David Peek
Published on 2010-05-19T00:15:46Z Indexed on 2010/05/19 0:20 UTC
Read the original article Hit count: 548

Filed under:
|
|
|

I'm trying to point DocumentRoot at a directory in my user folder. While I can happily point DocumentRoot at /Library/WebServer/Documents and ~/Sites I keep getting "You don't have permission to access / on this server." when I point it anywhere else.

OK, I just found a solution mid-question (stack overflow is just that good) by changing the user/group apache runs under to myuser/admin. I'm sure there must be a better way though. Surely some kind of permissions magic on the directory I'm pointing at?

© Stack Overflow or respective owner

Related posts about apache2

Related posts about osx