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>
link|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
show 4 more comments
feedback

1 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!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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