apache_directive_blocked_error please allow IncludeOptional for /etc/apache2/conf-available/ files
short description
What is happening and what is wrong with that? ISPconfig blocking legit settings. trying to add the following to my mail vhost.
IncludeOptional /etc/apache2/conf-available/davical.conf
IncludeOptional /etc/apache2/conf-available/z-push.conf
IncludeOptional /etc/apache2/conf-available/z-push-autodiscover.conf
correct behaviour
What should happen instead? Allow the directives.
environment
Server OS: debian Server OS version: buster ISPConfig version: Lastest stable 3.1.14p2
proposed fix
As proposed fix im suggesting whitelisting the default apache conf-available folder. IncludeOptional /etc/apache2/conf-available/(userinput.conf)
By allowing the IncludeOptional for this, if packages are removed apache will skip these configs. Im against adding these settings directly into the config, because of the content of these files changes in the backgroup, its not pickup by ISPconfig, while using IncludeOptional is always correct