Article ID: 127, created on Oct 6, 2008, last review on May 24, 2016

  • Applies to:
  • Plesk for Linux/Unix


Is it possible to use symbolic links from a site webspace to other directories on server?


By default, Apache does not follow symbolic links for security reasons, and Access Forbidden error is returned when trying to access the link. This behavior is controlled by the FollowSymLinks option.

Following symlinks can be enabled for the whole server in the main Apache configuration file:

    Options +FollowSymLinks

Alternatively, it can be set on a per-domain basis by placing it into the vhost.conf file.

For example:

To enable symlinks for a domain, go to Subscriptions > > Web Server Settings > Additional directives for HTTP

with the content:

<Directory /var/www/vhosts/>
        Options +ExecCGI +FollowSymlinks

For old Plesk versions (less than Plesk 11.5) procedure is the following:

  1. Create custom configuration file /var/www/vhosts/ with the content:

    <Directory /var/www/vhosts/> 
    Options -Includes +ExecCGI +FollowSymlinks 
  2. Change group owner to apache

    chown root:apache /var/www/vhosts/
  3. Reconfigure domain

    /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain

Note: suexec does not follow symlinks; if you access a CGI script through a symbolic link, it will not work.

Search Words

Forbidden You don't have permission to access /

Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden

symlink stopped working

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF