apt-get install letsencrypt python3-certbot-apache dokuwiki apache2
a2ensite 000-default-le-ssl.conf sudo certbot --apache -d www.memelabs.net --post-hook "/usr/sbin/service apache2 restart"
sudo certbot --apache -d wiki.memelabs.net --post-hook "/usr/sbin/service apache2 restart"
Redirect permanent / https://www.memelabs.net
<VirtualHost *:80> ServerName wiki.memelabs.net DocumentRoot /usr/share/dokuwiki Redirect permanent / https://wiki.memelabs.net RewriteEngine on RewriteCond %{SERVER_NAME} =wiki.memelabs.net RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent] </VirtualHost>