Why does my symlink to another document root dir in Apache fail to work?

There can be many reasons for that.

One that I did not know until now is that the symlink itself and the directory it points to have to have the same user as owner (group owner seems to be irrelevant). If not, it won’t work. You can change ownership of the symlink rather than the directory it points to with one of these equivalent commands:

chown -h <filename>
chown --no-dereference <filename>

Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.