Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a symlink in my main htdocs directory /home/www/

cms (symlink)

lrwxrwxrwx 1 apache myuser 32 May 22 15:33 cms -> /home/www/xyz-cms/https/cms/

However, when I visit my site at I get a 404 not found.

Am I missing a step to get this working?

share|improve this question
up vote 4 down vote accepted

From the Apache 2 documentation,

For security reasons, Apache will follow symbolic links only if the Options setting for the relevant directory includes FollowSymLinks or SymLinksIfOwnerMatch.

So you need to make sure you have FollowSymLinks in the Options setting, probably as part of the <Directory> container.

For example,

<Directory /home/www/>
Options Indexes FollowSymLinks

Also, you'll need to make sure the permissions on /home/www/xyz-cms/https/cms/ allow access to the user Apache is running as.

share|improve this answer

Your Answer


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.