Is it possible to apply the
AllowOverride directive globally? (without, therefore, going to every single configuration file and adding the directive)
Yes, directives in a
<Directory> container are inherited to child directories. You could set the "global" setting for a parent directory of all your document roots, e.g.
/var/www (if your
apache.conf (Debian), default is
<Directory /var/www/> Options Indexes FollowSymLinks # commented the default behaviour #AllowOverride None # new setting, only set the types you need, e.g. AuthConfig, FileInfo etc. AllowOverride All Require all granted </Directory>
Of course you have to make sure that there are no other
<Directory> directives below this directory which reset the setting to
For fine-tuning which individual directives are allowed in
.htaccess files, see the AllowOverrideList directive.