<Directory /home/wger/src>
    <Files wsgi.py>
        Require all granted
    </Files>
</Directory>


<VirtualHost *:80>
    WSGIDaemonProcess wger python-path=/home/wger/src python-home=/home/wger/venv
    WSGIProcessGroup wger
    WSGIScriptAlias / /home/wger/src/wger/wsgi.py
    WSGIPassAuthorization On

    Alias /static/ /home/wger/static/
    <Directory /home/wger/static>
      Require all granted
      Header set Cache-Control "max-age=604800, public"
    </Directory>

    Alias /media/ /home/wger/media/
    <Directory /home/wger/media>
      Require all granted
      Header set Cache-Control "max-age=604800, public"
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/wger-error.log
    CustomLog ${APACHE_LOG_DIR}/wger-access.log combined
</VirtualHost>

ServerSignature Off
ServerTokens Prod
