blob: 7ff403d784473878d4d51aef4e58a7cd1ea36720 (
plain)
- <VirtualHost *:443>
- ServerName django.example.com
- ServerAdmin webmaster@example.com
- DocumentRoot /var/www/nowhere
- Include conf-available/local-tls.conf
- <Location />
- SetHandler uwsgi-handler
- uWSGISocket /run/uwsgi/app/local-django-app/socket
- uWSGImaxVars 512
- </Location>
- ErrorLog ${APACHE_LOG_DIR}/django.example.com-error.log
- CustomLog ${APACHE_LOG_DIR}/django.example.com-access.log combined
- </VirtualHost>
- <VirtualHost *:80>
- ServerName django.example.com
- ServerAlias *.django.example.com
- RedirectMatch permanent .* https://django.example.com/
- CustomLog ${APACHE_LOG_DIR}/redirect.log vhost_combined
- </VirtualHost>
|