Why don't my symlinks work?

michaelsanford

Translator, Web Developer
Here are some background snippits:

From ~/ (/Users/gwailo/)
drwxr-xr-x 726 gwailo staff 24640 Mar 13 10:30 Music

From /Library/WebServer/Documents/ftp/
lrwxr-xr-x 1 gwailo admin 20 Mar 14 19:34 Music -> /Users/gwailo/Music

From httpd.conf:
<Directory />
Options FollowSymLinks
AllowOverride AuthConfig
</Directory>

...

Options Indexes FollowSymLinks MultiViews

(I also tried AllowOverride All and AllowOverride None and that didn't help.)

Why is it then that when I go to that folder, I get little mystery icon files representing the symlinks, and if I try to put the full path into the web browser I get a "Forbidden--You do not have permission to access /ftp/Music/" error?

http://amras.no-ip.com/ftp/

This USED to work, perhaps I changed something inadvertently when I enabled .htaccess/AuthConfig?
 
Check the permissions on the gwailo and Music directories - if either one doesn't allow read/execute access for others, then you won't be able to follow the symlink.

That goes the same for the Site directories in the users' directories - if the user directory doesn't allow read/execute access for others, even if the Site one does, the httpd server can't display it.

That's most likely your problem with the symlinks.


Yikes! You need to put an advisory on that movie...where the heck did you get that thing?
 
Woah! Why is this the case.

I knew that the shared folder had to be a+rx, but I didn't know that the parent (~/) also did! I must have chmod a-x my home folder at some point. I've added a+x to ~/ and now it works just fine...

Yeah Leonard Nemoy singing about Bilbo Baggins, someone sent it to me, don't remember who.
 
The webserver has to have access along the full path - dunno why they set it up that way, but they did so we'll just have to live with it.

You're welcome :)
 
Yeah I guess in retrospect it makes more sense that whatever permissions you need in the folder have to be present in every parent folder.

If /a/ is set to ---------- then /a/b/ which might be drwxrwxrwx is invisible anyway! :p
 
Back
Top