Files
wger/extras/docker/demo/wger.conf
2022-05-08 16:01:41 +02:00

33 lines
843 B
Plaintext

<Directory /home/wger/src>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
<VirtualHost *:80>
WSGIApplicationGroup %{GLOBAL}
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