Curious symlink problem with Apache -- FC12

Robert Moskowitz rgm at htt-consult.com
Wed Nov 3 01:39:38 UTC 2010


I have a very simple setup.  This is to create a simple repo.

In /var/..../repo/html there are three files:

# ls -ls
total 8
4 lrwxrwxrwx 1 root root 60 2010-11-02 13:42 Centos-5.5 -> 
/media/d4ae05a3-c60f-489d-8159-e16c9a271f0b/repos/centos/5.5
0 lrwxrwxrwx 1 root root 31 2010-11-02 11:05 FC12 -> 
/var/hda/files/repo/fedora/FC12
4 -rw-r--r-- 1 root root 99 2010-11-02 13:43 index.html

index.html has in it:

<html>
<UL>
<LI><A HREF="FC12">Fedora 12</A>
<LI><A HREF="Centos-5.5">Centos 5.5</A>
</UL>
</html>

The link to FC12 works.  The link ot Centos-5.5 gets a 403 failure:

You don't have permission to access /Centos-5.5 on this server.

The permissions look the same, so why the failure?  And looking into 
these two symlinks:

# ls -ls FC12/
total 8
4 drwxr-xr-x 3 root root 4096 2009-11-21 19:35 os
4 drwxr-xr-x 3 root root 4096 2009-11-22 21:25 updates

# ls -ls Centos-5.5/
total 4
4 drwxr-xr-x 3 root root 4096 2010-11-02 14:04 os

So what is wrong with the Centos-5.5 symlink?




More information about the users mailing list