ServerName django.example.com
ServerAdmin webmaster@example.com
DocumentRoot /var/www/nowhere
Include conf.d/local-ssl.conf
SetHandler uwsgi-handler
uWSGISocket /run/uwsgi/app/local-django-app/socket
uWSGImaxVars 512
ErrorLog ${APACHE_LOG_DIR}/django.example.com-error.log
CustomLog ${APACHE_LOG_DIR}/django.example.com-access.log combined
ServerName django.example.com
ServerAlias *.django.example.com
Include conf.d/local-log-origin.conf
RedirectMatch permanent .* https://django.example.com/
ErrorLog ${APACHE_LOG_DIR}/django.example.com-error.log
CustomLog ${APACHE_LOG_DIR}/django.example.com-access.log origin