ServerAdmin postmaster@finnchristiansen.de DocumentRoot /var/www/vhosts/reminder.pimux.de ServerName reminder.pimux.de ErrorLog ${APACHE_LOG_DIR}/reminder.pimux.de_error.log CustomLog ${APACHE_LOG_DIR}/reminder.pimux.de_access.log combined RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/.* RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} RewriteCond %{SERVER_NAME} =reminder.pimux.de RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] ServerAdmin postmaster@finnchristiansen.de ServerName reminder.pimux.de DocumentRoot /var/www/vhosts/reminder.pimux.de/ ErrorLog ${APACHE_LOG_DIR}/reminder.pimux.de_error.log CustomLog ${APACHE_LOG_DIR}/reminder.pimux.de_access.log combined SetEnv SECRET_KEY secret WSGIDaemonProcess reminder user=www-data group=www-data threads=5 WSGIScriptAlias / /var/www/vhosts/reminder.pimux.de/index.py WSGIScriptReloading On WSGIPassAuthorization On Alias /static/ /var/www/vhosts/reminder.pimux.de/static/ WSGIProcessGroup reminder WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all SSLEngine on SSLCACertificateFile /etc/letsencrypt/live/reminder.pimux.de/chain.pem SSLCertificateFile /etc/letsencrypt/live/reminder.pimux.de/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/reminder.pimux.de/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf