The *pre.conf at the beginning of the virtual host file and the *post.conf at the end of the virtual host file.
Obviously when I started the apache daemon it failed., so I added two empty files with that name and the daemon started without any errors or warnings.
However, after a few hours the two files were automatically removed and the daemon went down.
Has anyone experienced this issue and what is that needs to be changed to make it stop doing that?
It would seem that the files are deleted by certbot when I run certbot renew. However something else keeps on adding this two Includes statements to the vhosts configuration files as now I can see two duplicated lines:
<VirtualHost *:80>
Include /etc/apache2/vhosts.d/le_http_01_challenge_pre.conf
Include /etc/apache2/vhosts.d/le_http_01_challenge_pre.conf
….]
Require all granted
RewriteEngine On
</Directory>
Include /etc/apache2/vhosts.d/le_http_01_challenge_post.conf
Include /etc/apache2/vhosts.d/le_http_01_challenge_post.conf
</VirtualHost>
If I remove them, after a while they get added on again.