Bookmark this site!


Mac OS X 10.5: Web Sharing - "Forbidden 403"

In what follows, substitute your short username for myshortname

Create the file
containing the following text:

<Directory "/Users/myshortname/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
Set the group and owner as follows:
sudo chown root:wheel /etc/apache2/users/myshortname.conf

Restart apache by switching Web Sharing off then on in System Preferences.


Anonymous said...

Just so everyone knows, after hours of work and googling, I have discovered that Filevault protected user accounts CANNOT have sharing enabled.

Gareth said...

Fantastic! Worked like a charm, I appreciate your help.

Tim Dietrich said...

Thanks for posting this! I think you just saved me hours of time that I would have spent trying to figure out why I couldn't access files in my personal Sites folder.

Rahul said...

nice really helped me thanks...

Tourn said...

It does work with Filevault enabled, though you need to run apache as yourself and not the _www user. see