Serving apache files from alternate directories with symbolic links
I'm trying to serve some files in my Documents directory from within my apache Sites directory by using symbolic links, and it isn't working.
Things I've done:
Linked to Documents directory:
ln -s /Users/username/Documents/test/ /Users/username/Sites/test
Made sure FollowSymLinks was turned on in /etc/apache2/users/username.conf:
<Directory "/Users/username/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Changed permissions on linked directory and its files:
chmod -R a+rx /Users/username/Documents/test
(I've also even tried to change the owner and group to www, still to no avail)
Restarted apache many times.
Every time I try to access http://localhost/~username/test/, I get a 403 -- and my apache log says this:
[error] [client ::1] Symbolic link not allowed or link target not accessible: /Users/username/Sites/test
Any ideas?
Regards,
Jeff
Mac OS X (10.5.5)