views:

12

answers:

1

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?

A: 

Change the permissions (not necessarily the owner) to allow the directory you're sharing as the website to be allowed to be read by the user that the web server daemon is running under.

Delan Azabani