summaryrefslogtreecommitdiff
path: root/apache2/sites-available/django.secure-example.com.conf
blob: 9a7db1426dc6f955e61fcf426bdec6ff95c876a2 (plain)
  1. <VirtualHost *:443>
  2. ServerName django.example.com
  3. ServerAdmin webmaster@example.com
  4. DocumentRoot /var/www/nowhere
  5. Include conf-available/local-ssl.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>