i’m trying to use letsencrypt and facing the following exception:
Error while running apache2ctl configtest.
"Action ‘configtest’ failed.
The Apache error log may have more information.
apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 9 of /etc/apache2/sites-enabled/mydomain.de-le-ssl.conf: Expected </VirtualHost> but saw </VirtualHost></IfModule>"
Command line input: sudo -H ./letsencrypt-auto --redirect --rsa-key-size 4096
-> The reason for using -H is facing the warning "The directory ‘/home/myUser/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag."
OS: Ubuntu 15.10
Current vHost file (its only one):
Do you have any ideas how to solve this?