How to include htaccess in Apache Directives

Discussion in 'Installation/Configuration' started by vistree, Jan 26, 2015.

  1. vistree

    vistree Member

    Hi all,
    as a follow up to https://www.howtoforge.com/communit...cess-and-apache-directives.68046/#post-323873
    I try to include the htaccess files into the virtualhost using ispconfig's Apache Directives field:
    Code:
    <Directory /var/www/my-domain.com/web/cms>
    Options -Indexes -FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
    Include /var/www/my-domain.com/web/cms/.htaccess
    </Directory>
    <Directory /var/www/my-domain.com/web/cms/sites/default/files>
    Include /var/www/my-domain.com/web/cms/sites/default/files/.htaccess
    </Directory>
    My CMS, Drupal, is located in /cms/
    For this, I use
    Redirect Type = No Flag
    Redirect Path = /cms/
    I already disabled
    apache_directives_scan_enabled=no
    in /usr/local/ispconfig/security/security_settings.ini
    But, after saving my settings above, I get a permission denied while accessing the website.
    What am I doing wrong?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    A .htaccess file is loaded by apache automatically, you dont have to unclude that.
     

Share This Page