ServerName custom.ardupilot.org WSGIDaemonProcess app threads=5 WSGIScriptAlias / /home/custom/CustomBuild/app.wsgi WSGIScriptAlias /generate /home/custom/CustomBuild/app.wsgi Options FollowSymLinks AllowOverride None Require all granted ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined SSLCertificateFile /etc/letsencrypt/live/custom.ardupilot.org/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/custom.ardupilot.org/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf ServerName custom.ardupilot.org RewriteEngine On RewriteCond %{SERVER_NAME} =custom.ardupilot.org RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]