mirror of
https://github.com/wger-project/wger.git
synced 2026-12-02 10:09:21 +01:00
The WSGI process wasn't using the application't virtualenv, so neither django or any other of the dependencies could be found. Also, note to self: make sure that when testing changes to the wger.conf file, you are *really* restarting the apache process to see if the fixes actually work...
26 lines
633 B
Plaintext
26 lines
633 B
Plaintext
<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
|
|
|
|
Alias /static/ /home/wger/static/
|
|
<Directory /home/wger/static>
|
|
Require all granted
|
|
</Directory>
|
|
|
|
Alias /media/ /home/wger/media/
|
|
<Directory /home/wger//media>
|
|
Require all granted
|
|
</Directory>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/wger-error.log
|
|
CustomLog ${APACHE_LOG_DIR}/wger-access.log combined
|
|
</VirtualHost>
|