mirror of
https://github.com/wger-project/wger.git
synced 2026-02-18 00:17:51 +01:00
33 lines
843 B
Plaintext
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
|