Invalid apache2 config (Ubuntu 16.04)
Hi all, after following the tutorial for perfect server (https://www.howtoforge.com/tutorial/perfect-server-ubuntu-16.04-with-apache-php-myqsl-pureftpd-bind-postfix-doveot-and-ispconfig/) I created a new website and ticked the SSL and Lets Encrypt SSL checkbox. After this the webserver won't come up again, the log says:
Apr 27 13:07:34 hostname apache2[18779]: AH00526: Syntax error on line 13 of /etc/apache2/sites-enabled/000-ispconfig.conf:
Apr 27 13:07:34 hostname apache2[18779]: <LocationMatch not allowed here
Apr 27 13:07:34 hostname apache2[18779]: Action 'configtest' failed
The config block in question is
<Directory /var/www/clients>
AllowOverride None
Require all denied
<IfModule mod_headers.c>
<LocationMatch "/.well-known/acme-challenge/*">
Header set Content-Type "text/plain"
</LocationMatch>
</IfModule>
</Directory>
I enabled the mod_headers module, which isn't in the tutorial, but is nonetheless needed for my purpose, especially for HSTS.