Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Some changes to the apache configuration

Roland Geiderdaf6f5c6cca7
diff --git a/docs/production.rst b/docs/production.rst
index c3db16ceb..49c791f8c 100644
--- a/docs/production.rst
+++ b/docs/production.rst
@@ -22,9 +22,6 @@ Install apache and the WSGI module::
Configure apache to serve the application::
- WSGIScriptAlias / /home/wger/src/wger/wsgi.py
- WSGIPythonPath /home/wger/src:/home/wger/venv/lib/python3.4/site-packages
-
<Directory /home/wger/src>
<Files wsgi.py>
Require all granted
@@ -33,6 +30,10 @@ Configure apache to serve the application::
<VirtualHost *:80>
+ WSGIDaemonProcess wger python-path=/home/wger/src:/home/wger/venv/lib/python3.4/site-packages
+ WSGIProcessGroup wger
+ WSGIScriptAlias / /home/wger/src/wger/wsgi.py
+
Alias /static/ /home/wger/static/
<Directory /home/wger/static>
Require all granted
diff --git a/extras/docker/apache/wger.conf b/extras/docker/apache/wger.conf
index 92c2495d1..54ee34886 100644
--- a/extras/docker/apache/wger.conf
+++ b/extras/docker/apache/wger.conf
@@ -1,6 +1,3 @@
-WSGIScriptAlias / /home/wger/src/wger/wsgi.py
-WSGIPythonPath /home/wger/src:/home/wger/venv/lib/python3.4/site-packages
-
<Directory /home/wger/src>
<Files wsgi.py>
Require all granted
@@ -9,6 +6,10 @@ WSGIPythonPath /home/wger/src:/home/wger/venv/lib/python3.4/site-packages
<VirtualHost *:80>
+ WSGIDaemonProcess wger python-path=/home/wger/src:/home/wger/venv/lib/python3.4/site-packages
+ WSGIProcessGroup wger
+ WSGIScriptAlias / /home/wger/src/wger/wsgi.py
+
Alias /static/ /home/wger/static/
<Directory /home/wger/static>
Require all granted