Apache 2 Symbolic link not allowed or link target not accessible

Posted by djechelon on Server Fault See other posts from Server Fault or by djechelon
Published on 2012-09-29T09:46:02Z Indexed on 2012/09/29 21:39 UTC
Read the original article Hit count: 421

Filed under:
|
|
|

While the title of this question matches an already asked question, in my case I already set Options +FollowSymLinks.

The setup is the following: my hosting setup includes htdocs/ directory that is the default document root for HTTP websites and htdocs-secure that is for HTTPS. They are meant for sites that need a different HTTPS version.

In case both share the same files I create a link from htdocs-secure to htdocs by ln -s htdocs htdocs-secure but here comes the problem! Log still says Symbolic link not allowed or link target not accessible: /path/to/htdocs-secure

Vhost fragment

    Header always set Strict-Transport-Security "max-age=500"
    DocumentRoot /path/to/htdocs-secure
    <Directory "/path/to/htdocs-secure">
        allow from all
        Options +FollowSymLinks
    </Directory>

I think it's a correct setup. The HTTP version of the site is accessible, so it doesn't look like a permission problem.

How to fix this?

[Add] other info: I use MPM-itk and I set AssignUserId to the owner/group of both the directories

© Server Fault or respective owner

Related posts about apache2

Related posts about ssl