Take the 2-minute tour ×

I have a symlink in my main htdocs directory /home/www/example.com/htdocs:

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 http://www.example.com/cms I get a 404 not found.

Am I missing a step to get this working?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

From the Apache 2 documentation,


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/example.com/htdocs>
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
add comment

Your Answer


