summaryrefslogtreecommitdiff
path: root/apache2/sites-available/django.secure-example.com.conf
blob: 7ff403d784473878d4d51aef4e58a7cd1ea36720 (plain)
  1. <VirtualHost *:443>
  2. ServerName django.example.com
  3. ServerAdmin webmaster@example.com
  4. DocumentRoot /var/www/nowhere
  5. Include conf-available/local-tls.conf
  6. <Location />
  7. SetHandler uwsgi-handler
  8. uWSGISocket /run/uwsgi/app/local-django-app/socket
  9. uWSGImaxVars 512
  10. </Location>
  11. ErrorLog ${APACHE_LOG_DIR}/django.example.com-error.log
  12. CustomLog ${APACHE_LOG_DIR}/django.example.com-access.log combined
  13. </VirtualHost>
  14. <VirtualHost *:80>
  15. ServerName django.example.com
  16. ServerAlias *.django.example.com
  17. RedirectMatch permanent .* https://django.example.com/
  18. CustomLog ${APACHE_LOG_DIR}/redirect.log vhost_combined
  19. </VirtualHost>