Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On Linux Fedora 15, Apache doesn't follow symlinks, and they did not show in directory index... Can you help me why?

Just to mention that in httpd.conf I do have :

<Directory />
    Options FollowSymLinks
</Directory>

Also, User and Group defined in httpd.conf are owners of proper directories where is web application saved...

Can you tell me what I'm doing wrong? Thank you in advance!!!

UPDATE: is a problem occured because target is on the other hard drive?

UPDATE 2: it follows symbolic links, but this link for some reason is not followed. It points to the dir on other hard drive.

UPDATE 3: there is "nothing special" after first direction, ie:

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
share|improve this question
    
I think the FollowSymlinks should be in your webroot-dir, possibly /var/www. –  ott-- Nov 6 '11 at 18:54
    
What's the rest of your config look like? Just because you've set FollowSymLinks on the root, doesn't mean it's not unset somewhere else.. –  Shane Madden Nov 6 '11 at 20:38
    
no, nothing special after first Follow... pls check updated part of my message... –  user52869 Nov 6 '11 at 22:10
    
AllowOverride All makes it possible for FollowSymLinks to be turned off in a .htaccess-file. –  Kvisle Nov 6 '11 at 22:16
    
tnx for advice, but, no, it's not turned off with htaccess :-(((( –  user52869 Nov 6 '11 at 22:20

2 Answers 2

Make sure that Apache has read permission in the directory the link points too. Giving read permission on the link itself is not sufficient.

share|improve this answer

If only this link is a problem, it makes me think the link is the problem and not the Apache config. Are you sure it is not broken or the target drive is not mounted properly? For a file on a seperate drive ls -l should show, for example:

-rw-r--r-- 1 user group size date time link_name -> /drive/mount/point/path/to/file/file_name

If it does not then you should remake the link using:

rm link_name
ln -s /drive/mount/point/path/to/file/file_name link_name

If the link is pointing to the right place, perhaps the target drive is not mounted. Remount it and try again. Best of luck!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.