# Those aliases do not work properly with several hosts on your apache server
# Uncomment them to use it or adapt them to your configuration
#    Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
#    Alias /roundcube /var/lib/roundcube
Alias /roundcubemail /usr/share/roundcubemail/

# Access to tinymce files
#<Directory "/usr/share/tinymce/www/">
#    Options Indexes MultiViews FollowSymLinks
#    AllowOverride None
#    Order allow,deny
#    Allow from all
#</Directory>

<Directory /usr/share/roundcubemail/>
    Options +FollowSymLinks
    AllowOverride All
    <ifModule mod_authz_core.c>
        Require all granted
    </ifModule>
    <ifModule !mod_authz_core.c>
        Order Allow,Deny
        Allow from All
    </ifModule>
</Directory>

# Protecting basic directories:
<Directory /usr/share/roundcubemail/config>
    Options -FollowSymLinks
    AllowOverride None
</Directory>

<Directory /usr/share/roundcubemail/logs>
    Options -FollowSymLinks
    AllowOverride None
    <ifModule mod_authz_core.c>
        Require all denied
    </ifModule>
    <ifModule !mod_authz_core.c>
        Order Deny,Allow
        Deny from All
    </ifModule>
</Directory>
