When trying to install new letsencrypt certificates on my raspberry-pi apache 2.4 webserver using sudo certbot --apache
I get the following error:
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.
apache2: Syntax error on line x of /etc/apache2/apache2.conf: Syntax error on line x of /etc/apache2/sites-enabled/xxx-le-ssl.conf: Expected </VirtualHost> but saw </VirtualHost></IfModule>
How can this error be fixed?