<VirtualHost *:80>
  ServerName localhost:80
  ServerAdmin a.b@c.com

  DocumentRoot /srv/www/numbas_editor/web

  WSGIDaemonProcess numbas-editor processes=5 threads=10 python-home=/opt/python/numbas-editor
  WSGIProcessGroup numbas-editor
  WSGIScriptAlias / /srv/www/numbas_editor/web/django.wsgi

  <Directory /srv/www/numbas_editor/web>
    Require all granted
  </Directory>

  Alias /static/ /srv/numbas/static/
  <Directory /srv/numbas/static>
    Require all granted
  </Directory>

  Alias /media/ /srv/numbas/media/
  <Directory /srv/numbas/media>
    Require all granted
  </Directory>

  Alias /numbas-previews/ /srv/numbas/previews/
  <Directory /srv/numbas/previews>
    Require all granted
  </Directory>

  ErrorLog /var/log/apache2/numbas_editor.error.log

  # Possible values include: debug, info, notice, warn, error, crit,
  # alert, emerg.
  LogLevel warn

  CustomLog /var/log/apache2/numbas_editor.access.log combined
  ServerSignature On

</VirtualHost>

