Thursday, July 08, 2010

Mac OS X Leopard/Snow Leopard Web Sharing Forbidden Issues

Forbidden
You don't have permission to access /~username/ on this server.

Have you received an error like the one above, then I may have the solution for you. There are a number of posts on the web around permissions, and Apache configuration files, etc. I found that the solution was really simple, yet not obvious.

It has to do with File Sharing, you need to add the Sites directory to the list of directories which are shared, even if sharing is not turned on. See the example below.


Once you add the Sites directory to the list and turn on Web Sharing, you should be able to see the local sites for users on the local system.

4 comments :

Mondozer said...

Thanks. I was trying to stream movies from my iMac to my iPad using Webserver and was stumped until I read your post. Added the Movies folder to the list and Bingo, several hours of frustration rewarded with the answer.

Thank you so much.
Mark

John Yeary said...

I usually find that if I come across an issue, someone else will have the same issue.

I am glad that I could be of assistance.

Unknown said...

Thank you. I was going crazy trying to figure this out. This solution worked for me. I came across tens or twenty of sites with the same solution which didn't work for me. This one did. Thank you. I wish I could bump this post up higher in the google search rankings.

Jesse said...

This is totally what it was after like 3 hours of digging! Thank you!

Popular Posts